plugins: fix configurations
- Removes deprecated keybindings for diagnostics. - Removes branch options when installing venv-selector. - Updates options for JSON folding. - Fixes other deprecated options, especially for LSP configuration. - Updates the repository URL for Mason plugings. Co-Authored-by: iGor milhit <igor@milhit.ch>
parent
be776d2896
commit
aa19b8a242
|
|
@ -2,7 +2,7 @@
|
|||
-- Use treesitter for folding
|
||||
-- Disable the color column
|
||||
|
||||
vim.opt.foldmethod="expr"
|
||||
vim.opt.foldexpr="nvim_treesitter#foldexpr()"
|
||||
vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()'
|
||||
vim.wo[0][0].foldmethod = 'expr'
|
||||
vim.opt.foldlevel=3
|
||||
vim.opt.colorcolumn=""
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ local highlight_group = vim.api.nvim_create_augroup(
|
|||
)
|
||||
vim.api.nvim_create_autocmd('TextYankPost', {
|
||||
callback = function()
|
||||
vim.highlight.on_yank()
|
||||
vim.hl.on_yank()
|
||||
end,
|
||||
group = highlight_group,
|
||||
pattern = '*',
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ return {
|
|||
-- Adds code actions, such as smart file renaming, etc
|
||||
{ "antosha417/nvim-lsp-file-operations", config = true },
|
||||
-- 💫 Extensible UI for Neovim notifications and LSP progress messages
|
||||
{ 'j-hui/fidget.nvim', tag = "legacy", opts = {} },
|
||||
{ 'j-hui/fidget.nvim', tag = "legacy", opts = {} },
|
||||
},
|
||||
config = function()
|
||||
-- Import lsp-zero
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
-- LSP
|
||||
|
||||
return {
|
||||
"williamboman/mason.nvim",
|
||||
"mason-org/mason.nvim",
|
||||
dependencies = {
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"mason-org/mason-lspconfig.nvim",
|
||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||
},
|
||||
config = function()
|
||||
|
|
@ -15,9 +15,11 @@ return {
|
|||
local mason_lspconfig = require("mason-lspconfig")
|
||||
|
||||
-- Import lspconfig
|
||||
local lspconfig = require("lspconfig")
|
||||
-- local lspconfig = require("lspconfig")
|
||||
local lspconfig = vim.lsp.config
|
||||
|
||||
local util = require("lspconfig.util")
|
||||
-- local util = require("lspconfig.util")
|
||||
local util = vim.lsp.util
|
||||
|
||||
-- Import mason-tool-installer
|
||||
local mason_tool_installer = require("mason-tool-installer")
|
||||
|
|
@ -59,11 +61,11 @@ return {
|
|||
},
|
||||
handlers = {
|
||||
-- Function called for each LSP from the ensure_installed list loaded
|
||||
function(server_name)
|
||||
-- Activate all LSP from the ensure_installed list with its default
|
||||
-- configuration
|
||||
lspconfig[server_name].setup({})
|
||||
end,
|
||||
-- function(server_name)
|
||||
-- -- Activate all LSP from the ensure_installed list with its default
|
||||
-- -- configuration
|
||||
-- -- lspconfig[server_name].setup({})
|
||||
-- end,
|
||||
|
||||
-- Then, configure each LSP as needed
|
||||
-- See https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
|
||||
|
|
|
|||
|
|
@ -1,19 +1,5 @@
|
|||
-- Diagnostic keymaps
|
||||
|
||||
vim.keymap.set(
|
||||
'n',
|
||||
'[d',
|
||||
vim.diagnostic.goto_prev,
|
||||
{ desc = "[Diagnostic] Go to previous diagnostic message" }
|
||||
)
|
||||
|
||||
vim.keymap.set(
|
||||
'n',
|
||||
']d',
|
||||
vim.diagnostic.goto_next,
|
||||
{ desc = "[Diagnostic] Go to next diagnostic message" }
|
||||
)
|
||||
|
||||
vim.keymap.set(
|
||||
'n',
|
||||
'<leader>e',
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
return {
|
||||
'linux-cultist/venv-selector.nvim',
|
||||
branch = 'regexp',
|
||||
-- branch = 'regexp',
|
||||
dependencies = {
|
||||
'neovim/nvim-lspconfig',
|
||||
'nvim-telescope/telescope.nvim',
|
||||
|
|
|
|||
Loading…
Reference in New Issue