Compare commits

...

2 commits

Author SHA1 Message Date
fc70aa6d49 Some plugin updates + misc cleanup 2025-12-27 17:04:10 -05:00
a8136d4297 lsp: migrate away from lsp-zero 2025-06-18 20:10:11 +00:00
13 changed files with 114 additions and 93 deletions

View file

@ -1,39 +1,37 @@
{
"LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" },
"catppuccin": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" },
"LuaSnip": { "branch": "master", "commit": "5a1e39223db9a0498024a77b8441169d260c8c25" },
"catppuccin": { "branch": "main", "commit": "ce8d176faa4643e026e597ae3c31db59b63cef09" },
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
"cmp-nvim-lsp": { "branch": "main", "commit": "a8912b88ce488f411177fc8aed358b04dc246d7b" },
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
"crates.nvim": { "branch": "main", "commit": "73d2c590c74a0c582144987a4decb4a642755859" },
"crates.nvim": { "branch": "main", "commit": "ac9fa498a9edb96dc3056724ff69d5f40b898453" },
"diagflow.nvim": { "branch": "main", "commit": "b13321b517ff64bf42eeac2214085d3c76d83a0d" },
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
"gitsigns.nvim": { "branch": "main", "commit": "2149fc2009d1117d58e86e56836f70c969f60a82" },
"gitsigns.nvim": { "branch": "main", "commit": "bf77caa5da671f5bab16e4792711d5aa288e8db0" },
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
"lsp-zero.nvim": { "branch": "v3.x", "commit": "77550f2f6cbf0959ef1583d845661af075f3442b" },
"lspkind.nvim": { "branch": "master", "commit": "d79a1c3299ad0ef94e255d045bed9fa26025dab6" },
"lualine.nvim": { "branch": "master", "commit": "86fe39534b7da729a1ac56c0466e76f2c663dc42" },
"mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" },
"mini.indentscope": { "branch": "main", "commit": "8af2569a7d7fd37300dfa760e44e71efbbf322fd" },
"mini.pairs": { "branch": "main", "commit": "69864a2efb36c030877421634487fd90db1e4298" },
"noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" },
"nui.nvim": { "branch": "main", "commit": "8d3bce9764e627b62b07424e0df77f680d47ffdb" },
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
"nvim-lspconfig": { "branch": "master", "commit": "747de98ca607615f66af5864f3eeaa2eeeb3d2da" },
"nvim-navic": { "branch": "master", "commit": "39231352aec0d1e09cebbffdd9dc20a5dc691ffe" },
"nvim-treesitter": { "branch": "master", "commit": "684eeac91ed8e297685a97ef70031d19ac1de25a" },
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
"nvim-web-devicons": { "branch": "master", "commit": "855c97005c8eebcdd19846f2e54706bffd40ee96" },
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"ripgrep": { "branch": "master", "commit": "6dfaec03e830892e787686917509c17860456db1" },
"telescope-file-browser.nvim": { "branch": "master", "commit": "626998e5c1b71c130d8bc6cf7abb6709b98287bb" },
"telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" },
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
"vim-fugitive": { "branch": "master", "commit": "4a745ea72fa93bb15dd077109afbb3d1809383f2" },
"vim-illuminate": { "branch": "master", "commit": "1fa4b23409e22a03823648e344c77f260e2572cb" },
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
"lspkind.nvim": { "branch": "master", "commit": "3ddd1b4edefa425fda5a9f95a4f25578727c0bb3" },
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
"mini.icons": { "branch": "main", "commit": "ff2e4f1d29f659cc2bad0f9256f2f6195c6b2428" },
"mini.indentscope": { "branch": "main", "commit": "0308f949f31769e509696af5d5f91cebb2159c69" },
"mini.pairs": { "branch": "main", "commit": "d5a29b6254dad07757832db505ea5aeab9aad43a" },
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-cmp": { "branch": "main", "commit": "d97d85e01339f01b842e6ec1502f639b080cb0fc" },
"nvim-lspconfig": { "branch": "master", "commit": "d696e36d5792daf828f8c8e8d4b9aa90c1a10c2a" },
"nvim-navic": { "branch": "master", "commit": "7d914a39a1ef8f4e22c2c4381abeef7c556f5a13" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
"nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" },
"nvim-web-devicons": { "branch": "master", "commit": "6788013bb9cb784e606ada44206b0e755e4323d7" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"ripgrep": { "branch": "master", "commit": "0a88cccd5188074de96f54a4b6b44a63971ac157" },
"telescope-file-browser.nvim": { "branch": "master", "commit": "3610dc7dc91f06aa98b11dca5cc30dfa98626b7e" },
"telescope.nvim": { "branch": "master", "commit": "4d0f5e0e7f69071e315515c385fab2a4eff07b3d" },
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
"vim-fugitive": { "branch": "master", "commit": "61b51c09b7c9ce04e821f6cf76ea4f6f903e3cf4" },
"vim-illuminate": { "branch": "master", "commit": "0d1e93684da00ab7c057410fecfc24f434698898" },
"vim-lumen": { "branch": "master", "commit": "97157aac9f0d24c144a3defdfe5057ee61e18dcb" },
"vim-numbertoggle": { "branch": "main", "commit": "075b7478777e694fbac330ee34a74590dad0fee1" },
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
"vimtex": { "branch": "master", "commit": "cfd4e528b0b44804b51a2929ddcde0b99ebae52f" },
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
"vimtex": { "branch": "master", "commit": "f5c37462c690da9a0d05cd12a7b9595b10b56200" },
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }
}

View file

@ -1,6 +1,6 @@
return {
{
"VonHeikemen/lsp-zero.nvim",
"neovim/nvim-lspconfig",
opts = {
my_servers = {
bashls = {},

View file

@ -1,6 +1,6 @@
return {
{
"VonHeikemen/lsp-zero.nvim",
"neovim/nvim-lspconfig",
opts = {
my_servers = {
clangd = {

View file

@ -1,6 +1,6 @@
return {
{
"VonHeikemen/lsp-zero.nvim",
"neovim/nvim-lspconfig",
opts = {
my_servers = {
gopls = {},

View file

@ -1,6 +1,6 @@
return {
{
"VonHeikemen/lsp-zero.nvim",
"neovim/nvim-lspconfig",
opts = {
my_servers = {
pylsp = {},

View file

@ -1,6 +1,6 @@
return {
{
"VonHeikemen/lsp-zero.nvim",
"neovim/nvim-lspconfig",
opts = {
my_servers = {
racket_langserver = {},

View file

@ -1,6 +1,6 @@
return {
{
"VonHeikemen/lsp-zero.nvim",
"neovim/nvim-lspconfig",
opts = {
my_servers = {
rust_analyzer = {

View file

@ -1,6 +1,6 @@
return {
{
"VonHeikemen/lsp-zero.nvim",
"neovim/nvim-lspconfig",
opts = {
my_servers = {
texlab = {},
@ -30,7 +30,8 @@ return {
vim.g.vimtex_syntax_enabled = 0
-- Use Zathura instead of Evince
--vim.g.vimtex_view_method = "zathura"
vim.g.vimtex_view_method = "general"
vim.g.vimtex_view_general_viewer = "papers"
vim.g.vimtex_view_forward_search_on_start = 0
-- TeX file-specific options

View file

@ -29,7 +29,7 @@ vim.api.nvim_create_autocmd("FileType", {
return {
{
"VonHeikemen/lsp-zero.nvim",
"neovim/nvim-lspconfig",
opts = {
my_servers = {
tinymist = {

View file

@ -1,22 +1,22 @@
return {
{
"VonHeikemen/lsp-zero.nvim",
branch = "v3.x",
dependencies = {
"neovim/nvim-lspconfig",
event = { "BufReadPre", "BufNewFile" },
dependencies = {
"SmiteshP/nvim-navic",
},
opts = {
-- Servers configured in my_servers will automatically have
-- require("lspconfig")[server].setup(server_opts) called on them
-- Servers configured in my_servers will be automatically configured
my_servers = {},
},
config = function(_, opts)
local lsp_zero = require("lsp-zero")
local lspconfig = require("lspconfig")
-- enable lsp-zero
lsp_zero.on_attach(function(client, buffnr)
-- configure keybinds + navic at attach time
vim.api.nvim_create_autocmd("LspAttach", {
callback = function(args)
local client = assert(vim.lsp.get_client_by_id(args.data.client_id))
-- set lsp keybinds
-- NOTE: this check is needed since crates.nvim will overwrite "K"
if not vim.fn.mapcheck("K", "n") then
@ -35,19 +35,26 @@ return {
vim.keymap.set("n", "go", "<cmd>Telescope lsp_type_definitions<cr>", { desc = "Go to object type definition" })
vim.keymap.set("n", "<leader>d", "<cmd>Telescope diagnostics bufnr=0<cr>", { desc = "Open file diagnostic list" })
vim.keymap.set("n", "<leader>D", "<cmd>Telescope diagnostics<cr>", { desc = "Open workspace diagnostic list" })
vim.keymap.set("n", "<leader>s", "<cmd>Telescope lsp_document_symbols<cr>", { desc = "Open file symbols list" })
vim.keymap.set("n", "<leader>S", "<cmd>Telescope lsp_dynamic_workspace_symbols<cr>", { desc = "Open all workspaces symbols list" })
-- Use navic for context hints
if client.supports_method("textDocument/documentSymbol") then
require("nvim-navic").attach(client, buffnr)
require("nvim-navic").attach(client, args.buf)
end
end)
end,
})
-- use pretty icons instead of 'W', 'E', ...
lsp_zero.set_sign_icons({
error = '',
warn = '',
hint = '',
info = '»'
vim.diagnostic.config({
signs = {
text = {
[vim.diagnostic.severity.ERROR] = '',
[vim.diagnostic.severity.WARN] = '',
[vim.diagnostic.severity.HINT] = '',
[vim.diagnostic.severity.INFO] = '»',
},
},
})
-- disable LSP logging
@ -56,7 +63,8 @@ return {
-- Set up language servers
local servers = opts.my_servers
for server, server_opts in pairs(servers) do
require("lspconfig")[server].setup(server_opts)
vim.lsp.config(server, server_opts)
vim.lsp.enable(server)
end
end,
},
@ -65,7 +73,11 @@ return {
event = "InsertEnter",
dependencies = {
"onsails/lspkind.nvim",
{
"L3MON4D3/LuaSnip",
version = "v2.*",
build = "make install_jsregexp",
},
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"saadparwaiz1/cmp_luasnip",
@ -116,6 +128,8 @@ return {
{ name = "buffer" },
}),
mapping = {
["<Up>"] = cmp.mapping.select_prev_item({}, {'i'}),
["<Down>"] = cmp.mapping.select_next_item({}, {'i'}),
-- Use "Enter" for auto completion
["<cr>"] = cmp.mapping.confirm({select = false}),
["<Tab>"] = tab_mapping,
@ -150,6 +164,9 @@ return {
event = "LspAttach",
opts = {
scope = "line",
-- don't show diagnostics in insert mode
toggle_event = { "InsertEnter" },
},
},

View file

@ -32,6 +32,24 @@ return {
-- sort buffers in order of last-use
sort_lastused = true,
},
lsp_document_symbols = {
theme = "dropdown",
layout_config = {
width = 0.9,
},
},
lsp_workspace_symbols = {
theme = "dropdown",
layout_config = {
width = 0.9,
},
},
lsp_dynamic_workspace_symbols = {
theme = "dropdown",
layout_config = {
width = 0.9,
},
},
diagnostics = {
theme = "dropdown",
layout_config = {
@ -41,6 +59,7 @@ return {
},
extensions = {
file_browser = {
initial_mode = "normal",
mappings = {},
},
},

View file

@ -20,22 +20,6 @@ return {
},
},
dependencies = {
{
"stevearc/dressing.nvim",
opts = {
input = {
mappings = {
i = {
["<Esc>"] = "Close",
},
},
},
select = {
backend = { "telescope" },
telescope = require("telescope.themes").get_cursor(),
},
},
},
{
"MunifTanjim/nui.nvim"
},

View file

@ -9,7 +9,9 @@ return {
vim.o.timeout = true
vim.o.timeoutlen = 300
end,
opts = {},
opts = {
preset = "helix",
},
}
}