ide/patch/kickstart.nvim/updates.patch

201 lines
7.9 KiB
Diff
Raw Normal View History

diff --git a/init.lua b/init.lua
feat: add moar lsp/aliases and upgrade neovim/runtimes (#52) A lot of updates in my personal development environment: ## Additions 1. Command lines and runtimes: 1. [`ctlptl`][2]: `cli` to make local `kubernetes` cluster management easier 1. [`eksctl`][3]: `cli` to make `eks` cluster management easier 1. [`r`][4]: software environment for statistical computing and graphics 1. [`usage`][5]: specification for `cli`s, used by `mise` 1. Aliases: 1. `dc`: for `docker compose` 2. `k`: for `kubectl` 1. Moar `lsp`s: 1. [`cuelsp`][8]: for the [`cue`][9], with [`dagger`][10] support 1. [`jsonls`][11]: for `json` schemas 1. [`r-languageserver`][12]: for the [`r`][4] environment 1. [`yamlls`][13]: for `yaml` schemas 1. Auto-completion for: 1. [`ctlptl`][2] 1. [`eksctl`][3] 1. `helm` 1. `k3d` 1. `k9s` 1. `kubectl` 1. `lefthook` 1. `mise` ## Upgrades 1. Runtimes: 1. [`elixir` from 1.16.2 to 1.17.0][0] 1. [`erlang` from 26.2.5 to 27.0][1] 1. [`kickstart.nvim` to latest commit][6] 1. [Installation of `atuin`][7] Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/52 [0]: https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/ [1]: https://www.erlang.org/news/170 [2]: https://github.com/tilt-dev/ctlptl [3]: https://eksctl.io/ [4]: https://www.r-project.org/ [5]: https://usage.jdx.dev/ [6]: https://github.com/nvim-lua/kickstart.nvim/commit/5aeddfdd5d0308506ec63b0e4f8de33e2a39355f [7]: https://github.com/atuinsh/atuin?tab=readme-ov-file#install [8]: https://github.com/dagger/cuelsp [9]: https://cuelang.org/ [10]: https://dagger.io/ [11]: https://github.com/microsoft/vscode-json-languageservice [12]: https://github.com/REditorSupport/languageserver [13]: https://github.com/redhat-developer/yaml-language-server Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2024-06-16 18:25:22 +00:00
index 88658ef..b2e4e40 100644
--- a/init.lua
+++ b/init.lua
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Set to true if you have a Nerd Font installed and selected in the terminal
-vim.g.have_nerd_font = false
+vim.g.have_nerd_font = true
-- [[ Setting options ]]
-- See `:help vim.opt`
@@ -102,10 +102,10 @@ vim.g.have_nerd_font = false
vim.opt.number = true
-- You can also add relative line numbers, to help with jumping.
-- Experiment for yourself to see if you like it!
--- vim.opt.relativenumber = true
+vim.opt.relativenumber = true
-- Enable mouse mode, can be useful for resizing splits for example!
-vim.opt.mouse = 'a'
+vim.opt.mouse = ''
-- Don't show the mode, since it's already in the status line
vim.opt.showmode = false
@@ -154,6 +154,14 @@ vim.opt.cursorline = true
-- Minimal number of screen lines to keep above and below the cursor.
vim.opt.scrolloff = 10
+-- Set foldmethod
+-- See `:help foldmethod`
+vim.opt.foldcolumn = '1'
+vim.opt.foldlevel = 99
+vim.opt.foldlevelstart = 99
+vim.opt.foldenable = true
+vim.opt.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
+
-- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()`
feat: add moar lsp/aliases and upgrade neovim/runtimes (#52) A lot of updates in my personal development environment: ## Additions 1. Command lines and runtimes: 1. [`ctlptl`][2]: `cli` to make local `kubernetes` cluster management easier 1. [`eksctl`][3]: `cli` to make `eks` cluster management easier 1. [`r`][4]: software environment for statistical computing and graphics 1. [`usage`][5]: specification for `cli`s, used by `mise` 1. Aliases: 1. `dc`: for `docker compose` 2. `k`: for `kubectl` 1. Moar `lsp`s: 1. [`cuelsp`][8]: for the [`cue`][9], with [`dagger`][10] support 1. [`jsonls`][11]: for `json` schemas 1. [`r-languageserver`][12]: for the [`r`][4] environment 1. [`yamlls`][13]: for `yaml` schemas 1. Auto-completion for: 1. [`ctlptl`][2] 1. [`eksctl`][3] 1. `helm` 1. `k3d` 1. `k9s` 1. `kubectl` 1. `lefthook` 1. `mise` ## Upgrades 1. Runtimes: 1. [`elixir` from 1.16.2 to 1.17.0][0] 1. [`erlang` from 26.2.5 to 27.0][1] 1. [`kickstart.nvim` to latest commit][6] 1. [Installation of `atuin`][7] Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/52 [0]: https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/ [1]: https://www.erlang.org/news/170 [2]: https://github.com/tilt-dev/ctlptl [3]: https://eksctl.io/ [4]: https://www.r-project.org/ [5]: https://usage.jdx.dev/ [6]: https://github.com/nvim-lua/kickstart.nvim/commit/5aeddfdd5d0308506ec63b0e4f8de33e2a39355f [7]: https://github.com/atuinsh/atuin?tab=readme-ov-file#install [8]: https://github.com/dagger/cuelsp [9]: https://cuelang.org/ [10]: https://dagger.io/ [11]: https://github.com/microsoft/vscode-json-languageservice [12]: https://github.com/REditorSupport/languageserver [13]: https://github.com/redhat-developer/yaml-language-server Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2024-06-16 18:25:22 +00:00
@@ -578,6 +586,28 @@ require('lazy').setup({
-- tsserver = {},
--
feat: add moar lsp/aliases and upgrade neovim/runtimes (#52) A lot of updates in my personal development environment: ## Additions 1. Command lines and runtimes: 1. [`ctlptl`][2]: `cli` to make local `kubernetes` cluster management easier 1. [`eksctl`][3]: `cli` to make `eks` cluster management easier 1. [`r`][4]: software environment for statistical computing and graphics 1. [`usage`][5]: specification for `cli`s, used by `mise` 1. Aliases: 1. `dc`: for `docker compose` 2. `k`: for `kubectl` 1. Moar `lsp`s: 1. [`cuelsp`][8]: for the [`cue`][9], with [`dagger`][10] support 1. [`jsonls`][11]: for `json` schemas 1. [`r-languageserver`][12]: for the [`r`][4] environment 1. [`yamlls`][13]: for `yaml` schemas 1. Auto-completion for: 1. [`ctlptl`][2] 1. [`eksctl`][3] 1. `helm` 1. `k3d` 1. `k9s` 1. `kubectl` 1. `lefthook` 1. `mise` ## Upgrades 1. Runtimes: 1. [`elixir` from 1.16.2 to 1.17.0][0] 1. [`erlang` from 26.2.5 to 27.0][1] 1. [`kickstart.nvim` to latest commit][6] 1. [Installation of `atuin`][7] Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/52 [0]: https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/ [1]: https://www.erlang.org/news/170 [2]: https://github.com/tilt-dev/ctlptl [3]: https://eksctl.io/ [4]: https://www.r-project.org/ [5]: https://usage.jdx.dev/ [6]: https://github.com/nvim-lua/kickstart.nvim/commit/5aeddfdd5d0308506ec63b0e4f8de33e2a39355f [7]: https://github.com/atuinsh/atuin?tab=readme-ov-file#install [8]: https://github.com/dagger/cuelsp [9]: https://cuelang.org/ [10]: https://dagger.io/ [11]: https://github.com/microsoft/vscode-json-languageservice [12]: https://github.com/REditorSupport/languageserver [13]: https://github.com/redhat-developer/yaml-language-server Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2024-06-16 18:25:22 +00:00
+ cuelsp = {},
+ elixirls = {
+ elixirLS = {
+ dialyzerEnabled = true,
+ dialyzerFormat = 'dialyxir_long',
+ fetchDeps = false,
+ mixEnv = 'test',
+ },
+ },
+ gopls = {},
+ helm_ls = {},
+ html = { filetypes = { 'html', 'twig', 'hbs' } },
+ htmx = {},
feat: add moar lsp/aliases and upgrade neovim/runtimes (#52) A lot of updates in my personal development environment: ## Additions 1. Command lines and runtimes: 1. [`ctlptl`][2]: `cli` to make local `kubernetes` cluster management easier 1. [`eksctl`][3]: `cli` to make `eks` cluster management easier 1. [`r`][4]: software environment for statistical computing and graphics 1. [`usage`][5]: specification for `cli`s, used by `mise` 1. Aliases: 1. `dc`: for `docker compose` 2. `k`: for `kubectl` 1. Moar `lsp`s: 1. [`cuelsp`][8]: for the [`cue`][9], with [`dagger`][10] support 1. [`jsonls`][11]: for `json` schemas 1. [`r-languageserver`][12]: for the [`r`][4] environment 1. [`yamlls`][13]: for `yaml` schemas 1. Auto-completion for: 1. [`ctlptl`][2] 1. [`eksctl`][3] 1. `helm` 1. `k3d` 1. `k9s` 1. `kubectl` 1. `lefthook` 1. `mise` ## Upgrades 1. Runtimes: 1. [`elixir` from 1.16.2 to 1.17.0][0] 1. [`erlang` from 26.2.5 to 27.0][1] 1. [`kickstart.nvim` to latest commit][6] 1. [Installation of `atuin`][7] Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/52 [0]: https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/ [1]: https://www.erlang.org/news/170 [2]: https://github.com/tilt-dev/ctlptl [3]: https://eksctl.io/ [4]: https://www.r-project.org/ [5]: https://usage.jdx.dev/ [6]: https://github.com/nvim-lua/kickstart.nvim/commit/5aeddfdd5d0308506ec63b0e4f8de33e2a39355f [7]: https://github.com/atuinsh/atuin?tab=readme-ov-file#install [8]: https://github.com/dagger/cuelsp [9]: https://cuelang.org/ [10]: https://dagger.io/ [11]: https://github.com/microsoft/vscode-json-languageservice [12]: https://github.com/REditorSupport/languageserver [13]: https://github.com/redhat-developer/yaml-language-server Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2024-06-16 18:25:22 +00:00
+ jsonls = {
+ settings = {
+ json = {
+ -- schemas = {
+ -- ["https://raw.githubusercontent.com/woodpecker-ci/woodpecker/main/pipeline/frontend/yaml/linter/schema/schema.json"] = "renovate.json",
+ -- },
+ },
+ },
+ },
lua_ls = {
-- cmd = {...},
-- filetypes = { ...},
feat: add moar lsp/aliases and upgrade neovim/runtimes (#52) A lot of updates in my personal development environment: ## Additions 1. Command lines and runtimes: 1. [`ctlptl`][2]: `cli` to make local `kubernetes` cluster management easier 1. [`eksctl`][3]: `cli` to make `eks` cluster management easier 1. [`r`][4]: software environment for statistical computing and graphics 1. [`usage`][5]: specification for `cli`s, used by `mise` 1. Aliases: 1. `dc`: for `docker compose` 2. `k`: for `kubectl` 1. Moar `lsp`s: 1. [`cuelsp`][8]: for the [`cue`][9], with [`dagger`][10] support 1. [`jsonls`][11]: for `json` schemas 1. [`r-languageserver`][12]: for the [`r`][4] environment 1. [`yamlls`][13]: for `yaml` schemas 1. Auto-completion for: 1. [`ctlptl`][2] 1. [`eksctl`][3] 1. `helm` 1. `k3d` 1. `k9s` 1. `kubectl` 1. `lefthook` 1. `mise` ## Upgrades 1. Runtimes: 1. [`elixir` from 1.16.2 to 1.17.0][0] 1. [`erlang` from 26.2.5 to 27.0][1] 1. [`kickstart.nvim` to latest commit][6] 1. [Installation of `atuin`][7] Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/52 [0]: https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/ [1]: https://www.erlang.org/news/170 [2]: https://github.com/tilt-dev/ctlptl [3]: https://eksctl.io/ [4]: https://www.r-project.org/ [5]: https://usage.jdx.dev/ [6]: https://github.com/nvim-lua/kickstart.nvim/commit/5aeddfdd5d0308506ec63b0e4f8de33e2a39355f [7]: https://github.com/atuinsh/atuin?tab=readme-ov-file#install [8]: https://github.com/dagger/cuelsp [9]: https://cuelang.org/ [10]: https://dagger.io/ [11]: https://github.com/microsoft/vscode-json-languageservice [12]: https://github.com/REditorSupport/languageserver [13]: https://github.com/redhat-developer/yaml-language-server Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2024-06-16 18:25:22 +00:00
@@ -592,6 +622,33 @@ require('lazy').setup({
},
},
},
+ pyright = {},
feat: add moar lsp/aliases and upgrade neovim/runtimes (#52) A lot of updates in my personal development environment: ## Additions 1. Command lines and runtimes: 1. [`ctlptl`][2]: `cli` to make local `kubernetes` cluster management easier 1. [`eksctl`][3]: `cli` to make `eks` cluster management easier 1. [`r`][4]: software environment for statistical computing and graphics 1. [`usage`][5]: specification for `cli`s, used by `mise` 1. Aliases: 1. `dc`: for `docker compose` 2. `k`: for `kubectl` 1. Moar `lsp`s: 1. [`cuelsp`][8]: for the [`cue`][9], with [`dagger`][10] support 1. [`jsonls`][11]: for `json` schemas 1. [`r-languageserver`][12]: for the [`r`][4] environment 1. [`yamlls`][13]: for `yaml` schemas 1. Auto-completion for: 1. [`ctlptl`][2] 1. [`eksctl`][3] 1. `helm` 1. `k3d` 1. `k9s` 1. `kubectl` 1. `lefthook` 1. `mise` ## Upgrades 1. Runtimes: 1. [`elixir` from 1.16.2 to 1.17.0][0] 1. [`erlang` from 26.2.5 to 27.0][1] 1. [`kickstart.nvim` to latest commit][6] 1. [Installation of `atuin`][7] Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/52 [0]: https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/ [1]: https://www.erlang.org/news/170 [2]: https://github.com/tilt-dev/ctlptl [3]: https://eksctl.io/ [4]: https://www.r-project.org/ [5]: https://usage.jdx.dev/ [6]: https://github.com/nvim-lua/kickstart.nvim/commit/5aeddfdd5d0308506ec63b0e4f8de33e2a39355f [7]: https://github.com/atuinsh/atuin?tab=readme-ov-file#install [8]: https://github.com/dagger/cuelsp [9]: https://cuelang.org/ [10]: https://dagger.io/ [11]: https://github.com/microsoft/vscode-json-languageservice [12]: https://github.com/REditorSupport/languageserver [13]: https://github.com/redhat-developer/yaml-language-server Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2024-06-16 18:25:22 +00:00
+ r_language_server = {},
+ templ = {},
+ terraformls = {},
+ tsserver = {},
feat: add moar lsp/aliases and upgrade neovim/runtimes (#52) A lot of updates in my personal development environment: ## Additions 1. Command lines and runtimes: 1. [`ctlptl`][2]: `cli` to make local `kubernetes` cluster management easier 1. [`eksctl`][3]: `cli` to make `eks` cluster management easier 1. [`r`][4]: software environment for statistical computing and graphics 1. [`usage`][5]: specification for `cli`s, used by `mise` 1. Aliases: 1. `dc`: for `docker compose` 2. `k`: for `kubectl` 1. Moar `lsp`s: 1. [`cuelsp`][8]: for the [`cue`][9], with [`dagger`][10] support 1. [`jsonls`][11]: for `json` schemas 1. [`r-languageserver`][12]: for the [`r`][4] environment 1. [`yamlls`][13]: for `yaml` schemas 1. Auto-completion for: 1. [`ctlptl`][2] 1. [`eksctl`][3] 1. `helm` 1. `k3d` 1. `k9s` 1. `kubectl` 1. `lefthook` 1. `mise` ## Upgrades 1. Runtimes: 1. [`elixir` from 1.16.2 to 1.17.0][0] 1. [`erlang` from 26.2.5 to 27.0][1] 1. [`kickstart.nvim` to latest commit][6] 1. [Installation of `atuin`][7] Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/52 [0]: https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/ [1]: https://www.erlang.org/news/170 [2]: https://github.com/tilt-dev/ctlptl [3]: https://eksctl.io/ [4]: https://www.r-project.org/ [5]: https://usage.jdx.dev/ [6]: https://github.com/nvim-lua/kickstart.nvim/commit/5aeddfdd5d0308506ec63b0e4f8de33e2a39355f [7]: https://github.com/atuinsh/atuin?tab=readme-ov-file#install [8]: https://github.com/dagger/cuelsp [9]: https://cuelang.org/ [10]: https://dagger.io/ [11]: https://github.com/microsoft/vscode-json-languageservice [12]: https://github.com/REditorSupport/languageserver [13]: https://github.com/redhat-developer/yaml-language-server Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2024-06-16 18:25:22 +00:00
+ yamlls = {
+ settings = {
+ yaml = {
+ schemas = {
+ ["https://json.schemastore.org/chart.json"] = "Chart.{yml,yaml}",
+ ["https://json.schemastore.org/drone.json"] = ".drone.{yml,yaml}",
+ ["https://json.schemastore.org/github-action.json"] = ".github/action.{yml,yaml}",
+ ["https://json.schemastore.org/github-workflow.json"] = ".github/workflows/*",
+ ["https://json.schemastore.org/kustomization.json"] = "kustomization.{yml,yaml}",
+ ["https://json.schemastore.org/prettierrc.json"] = ".prettierrc.{yml,yaml}",
+ ["https://json.schemastore.org/circleciconfig.json"] = ".circleci/config.{yml,yaml}",
+ ["https://json.schemastore.org/dependabot-v2"] = ".github/dependabot.{yml,yaml}",
+ ["https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json"] = "*api*.{yml,yaml}",
+ ["https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json#/$defs/playbook"] = "*play*.{yml,yaml}",
+ ["https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json#/$defs/tasks"] = "roles/tasks/*.{yml,yaml}",
+ ["https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json"] = "*flow*.{yml,yaml}",
+ ["https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json"] = "*docker-compose*.{yml,yaml}",
+ -- kubernetes = "*.{yml,yaml}",
+ }
+ }
+ }
+ }
}
-- Ensure the servers and tools above are installed
feat: add moar lsp/aliases and upgrade neovim/runtimes (#52) A lot of updates in my personal development environment: ## Additions 1. Command lines and runtimes: 1. [`ctlptl`][2]: `cli` to make local `kubernetes` cluster management easier 1. [`eksctl`][3]: `cli` to make `eks` cluster management easier 1. [`r`][4]: software environment for statistical computing and graphics 1. [`usage`][5]: specification for `cli`s, used by `mise` 1. Aliases: 1. `dc`: for `docker compose` 2. `k`: for `kubectl` 1. Moar `lsp`s: 1. [`cuelsp`][8]: for the [`cue`][9], with [`dagger`][10] support 1. [`jsonls`][11]: for `json` schemas 1. [`r-languageserver`][12]: for the [`r`][4] environment 1. [`yamlls`][13]: for `yaml` schemas 1. Auto-completion for: 1. [`ctlptl`][2] 1. [`eksctl`][3] 1. `helm` 1. `k3d` 1. `k9s` 1. `kubectl` 1. `lefthook` 1. `mise` ## Upgrades 1. Runtimes: 1. [`elixir` from 1.16.2 to 1.17.0][0] 1. [`erlang` from 26.2.5 to 27.0][1] 1. [`kickstart.nvim` to latest commit][6] 1. [Installation of `atuin`][7] Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/52 [0]: https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/ [1]: https://www.erlang.org/news/170 [2]: https://github.com/tilt-dev/ctlptl [3]: https://eksctl.io/ [4]: https://www.r-project.org/ [5]: https://usage.jdx.dev/ [6]: https://github.com/nvim-lua/kickstart.nvim/commit/5aeddfdd5d0308506ec63b0e4f8de33e2a39355f [7]: https://github.com/atuinsh/atuin?tab=readme-ov-file#install [8]: https://github.com/dagger/cuelsp [9]: https://cuelang.org/ [10]: https://dagger.io/ [11]: https://github.com/microsoft/vscode-json-languageservice [12]: https://github.com/REditorSupport/languageserver [13]: https://github.com/redhat-developer/yaml-language-server Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2024-06-16 18:25:22 +00:00
@@ -618,6 +675,33 @@ require('lazy').setup({
-- by the server configuration above. Useful when disabling
-- certain features of an LSP (for example, turning off formatting for tsserver)
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
+ -- overwrite elixirls for older versions of elixir
+ -- * elixir 1.11 use version 0.12.0
+ -- * elixir 1.12 use verions 0.14.6
+ if server_name == 'elixirls' then
+ local version = vim.fn.system('mise current elixir') or ''
+ local elixir_servers = {
+ { version = '^1.11', path = '/elixir-ls/release/v0.12.0/language_server.sh' },
+ { version = '^1.12', path = '/elixir-ls/release/v0.14.6/language_server.sh' },
+ }
+ for _, ex_server in ipairs(elixir_servers) do
+ if string.match(version, ex_server.version) == nil then goto continue end
+ server = vim.tbl_extend('keep', server, { cmd = { vim.fn.expand('$LOCAL_SRC_HOME') .. ex_server.path } })
+ ::continue::
+ end
+ elseif server_name == 'pyright' then
+ local python_paths = {
+ { name = 'poetry', cmd = { 'poetry', 'env', 'info', '--executable' }},
+ { name = 'system', cmd = { 'which', 'python' }},
+ }
+ for _, py_server in ipairs(python_paths) do
+ local cmd = vim.system(py_server.cmd, { text = true }):wait()
+ if (cmd.code > 0) then goto continue end
+ local python_path = string.gsub(cmd.stdout, '\n', '')
+ server = vim.tbl_extend('keep', server, { settings = { python = { pythonPath = python_path } } })
+ ::continue::
+ end
+ end
require('lspconfig')[server_name].setup(server)
end,
},
feat: add moar lsp/aliases and upgrade neovim/runtimes (#52) A lot of updates in my personal development environment: ## Additions 1. Command lines and runtimes: 1. [`ctlptl`][2]: `cli` to make local `kubernetes` cluster management easier 1. [`eksctl`][3]: `cli` to make `eks` cluster management easier 1. [`r`][4]: software environment for statistical computing and graphics 1. [`usage`][5]: specification for `cli`s, used by `mise` 1. Aliases: 1. `dc`: for `docker compose` 2. `k`: for `kubectl` 1. Moar `lsp`s: 1. [`cuelsp`][8]: for the [`cue`][9], with [`dagger`][10] support 1. [`jsonls`][11]: for `json` schemas 1. [`r-languageserver`][12]: for the [`r`][4] environment 1. [`yamlls`][13]: for `yaml` schemas 1. Auto-completion for: 1. [`ctlptl`][2] 1. [`eksctl`][3] 1. `helm` 1. `k3d` 1. `k9s` 1. `kubectl` 1. `lefthook` 1. `mise` ## Upgrades 1. Runtimes: 1. [`elixir` from 1.16.2 to 1.17.0][0] 1. [`erlang` from 26.2.5 to 27.0][1] 1. [`kickstart.nvim` to latest commit][6] 1. [Installation of `atuin`][7] Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/52 [0]: https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/ [1]: https://www.erlang.org/news/170 [2]: https://github.com/tilt-dev/ctlptl [3]: https://eksctl.io/ [4]: https://www.r-project.org/ [5]: https://usage.jdx.dev/ [6]: https://github.com/nvim-lua/kickstart.nvim/commit/5aeddfdd5d0308506ec63b0e4f8de33e2a39355f [7]: https://github.com/atuinsh/atuin?tab=readme-ov-file#install [8]: https://github.com/dagger/cuelsp [9]: https://cuelang.org/ [10]: https://dagger.io/ [11]: https://github.com/microsoft/vscode-json-languageservice [12]: https://github.com/REditorSupport/languageserver [13]: https://github.com/redhat-developer/yaml-language-server Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2024-06-16 18:25:22 +00:00
@@ -835,7 +919,38 @@ require('lazy').setup({
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
opts = {
- ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'vim', 'vimdoc' },
+ ensure_installed = {
+ 'bash',
+ 'c',
+ 'css',
+ 'diff',
+ 'dockerfile',
+ 'eex',
+ 'elixir',
+ 'erlang',
+ 'gitcommit',
+ 'go',
+ 'heex',
+ 'html',
+ 'http',
+ 'javascript',
+ 'json',
+ 'jsonc',
+ 'lua',
+ 'luadoc',
+ 'markdown',
+ 'markdown_inline',
+ 'python',
+ 'sql',
+ 'templ',
+ 'terraform',
+ 'toml',
+ 'tsx',
+ 'typescript',
+ 'vim',
+ 'vimdoc',
+ 'yaml',
+ },
-- Autoinstall languages that are not installed
auto_install = true,
highlight = {
feat: add moar lsp/aliases and upgrade neovim/runtimes (#52) A lot of updates in my personal development environment: ## Additions 1. Command lines and runtimes: 1. [`ctlptl`][2]: `cli` to make local `kubernetes` cluster management easier 1. [`eksctl`][3]: `cli` to make `eks` cluster management easier 1. [`r`][4]: software environment for statistical computing and graphics 1. [`usage`][5]: specification for `cli`s, used by `mise` 1. Aliases: 1. `dc`: for `docker compose` 2. `k`: for `kubectl` 1. Moar `lsp`s: 1. [`cuelsp`][8]: for the [`cue`][9], with [`dagger`][10] support 1. [`jsonls`][11]: for `json` schemas 1. [`r-languageserver`][12]: for the [`r`][4] environment 1. [`yamlls`][13]: for `yaml` schemas 1. Auto-completion for: 1. [`ctlptl`][2] 1. [`eksctl`][3] 1. `helm` 1. `k3d` 1. `k9s` 1. `kubectl` 1. `lefthook` 1. `mise` ## Upgrades 1. Runtimes: 1. [`elixir` from 1.16.2 to 1.17.0][0] 1. [`erlang` from 26.2.5 to 27.0][1] 1. [`kickstart.nvim` to latest commit][6] 1. [Installation of `atuin`][7] Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/52 [0]: https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/ [1]: https://www.erlang.org/news/170 [2]: https://github.com/tilt-dev/ctlptl [3]: https://eksctl.io/ [4]: https://www.r-project.org/ [5]: https://usage.jdx.dev/ [6]: https://github.com/nvim-lua/kickstart.nvim/commit/5aeddfdd5d0308506ec63b0e4f8de33e2a39355f [7]: https://github.com/atuinsh/atuin?tab=readme-ov-file#install [8]: https://github.com/dagger/cuelsp [9]: https://cuelang.org/ [10]: https://dagger.io/ [11]: https://github.com/microsoft/vscode-json-languageservice [12]: https://github.com/REditorSupport/languageserver [13]: https://github.com/redhat-developer/yaml-language-server Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2024-06-16 18:25:22 +00:00
@@ -874,18 +989,18 @@ require('lazy').setup({
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
--
-- require 'kickstart.plugins.debug',
- -- require 'kickstart.plugins.indent_line',
+ require 'kickstart.plugins.indent_line',
-- require 'kickstart.plugins.lint',
-- require 'kickstart.plugins.autopairs',
-- require 'kickstart.plugins.neo-tree',
- -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
+ require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
-- This is the easiest way to modularize your config.
--
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
- -- { import = 'custom.plugins' },
+ { import = 'custom.plugins' },
}, {
ui = {
-- If you are using a Nerd Font: set icons to an empty table which will use the