diff options
| author | A Farzat <a@farzat.xyz> | 2025-10-25 13:03:20 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-10-25 13:03:20 +0300 |
| commit | 493ca7b4e3fa375b6f5b33d4fce25d6a4903b61f (patch) | |
| tree | beb46f361d5b4afca3e2eabfc94d3a281f037e69 /.config | |
| parent | a36bd49bc151e4d94f7d53307f7ab1a06e74c760 (diff) | |
| download | dotfiles-master.tar.gz dotfiles-master.zip | |
Diffstat (limited to '.config')
| -rw-r--r-- | .config/nvim/plugin-settings/lspconfig.lua | 6 | ||||
| -rw-r--r-- | .config/nvim/plugins.vim | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/.config/nvim/plugin-settings/lspconfig.lua b/.config/nvim/plugin-settings/lspconfig.lua index 150db34..b866cbb 100644 --- a/.config/nvim/plugin-settings/lspconfig.lua +++ b/.config/nvim/plugin-settings/lspconfig.lua @@ -1,5 +1,3 @@ -local lspconfig = require("lspconfig") - -- Mappings. -- See `:help vim.diagnostic.*` for documentation on any of the below functions local opts = { noremap = true, silent = true } @@ -52,10 +50,10 @@ local simple_servers = { "yamlls", } for _, lsp in ipairs(simple_servers) do - lspconfig[lsp].setup({ capabilities = capabilities, on_attach = on_attach }) + vim.lsp.config(lsp, { capabilities = capabilities, on_attach = on_attach }) end -require("lspconfig").lua_ls.setup({ +vim.lsp.config("lua_ls", { on_init = function(client) if client.workspace_folders then local path = client.workspace_folders[1].name diff --git a/.config/nvim/plugins.vim b/.config/nvim/plugins.vim index 1ffb143..fcc38a8 100644 --- a/.config/nvim/plugins.vim +++ b/.config/nvim/plugins.vim @@ -20,7 +20,7 @@ Plug 'https://github.com/lukas-reineke/indent-blankline.nvim' " Indent guides fo Plug 'https://gitlab.com/HiPhish/rainbow-delimiters.nvim' " Rainbow delimiters for Neovim with Tree-sitter. Plug 'https://github.com/nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " Nvim Treesitter configurations and abstraction layer. Plug 'https://github.com/nvim-treesitter/nvim-treesitter-context' " Show code context. -Plug 'https://github.com/jose-elias-alvarez/null-ls.nvim' " Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua. +Plug 'https://github.com/nvimtools/none-ls.nvim' " Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua. Plug 'https://github.com/Vimjas/vim-python-pep8-indent' " A nicer Python indentation style for vim. Plug 'https://github.com/vim-airline/vim-airline' " Lean & mean status/tabline for vim that's light as air. Plug 'https://github.com/vim-airline/vim-airline-themes' " A collection of themes for vim-airline. |
