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>
iGor milhit 2025-12-17 07:41:30 +01:00
parent be776d2896
commit aa19b8a242
Signed by: igor
GPG Key ID: 692D97C3D0228A99
6 changed files with 16 additions and 28 deletions

View File

@ -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=""

View File

@ -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 = '*',

View File

@ -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

View File

@ -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

View File

@ -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',

View File

@ -3,7 +3,7 @@
return {
'linux-cultist/venv-selector.nvim',
branch = 'regexp',
-- branch = 'regexp',
dependencies = {
'neovim/nvim-lspconfig',
'nvim-telescope/telescope.nvim',