updated lsp with autocomplete

This commit is contained in:
venus
2026-03-10 16:34:31 -05:00
parent be84313c2c
commit 63bd661602
6 changed files with 46 additions and 17 deletions

View File

@@ -1,7 +1,25 @@
return {
{
"neovim/nvim-lspconfig",
dependencies = {
{ "mason-org/mason.nvim", config = true }, -- The "App Store"
{ "mason-org/mason-lspconfig.nvim", config = true }, -- The "Bridge"
},
}
},
{
'saghen/blink.cmp',
version = '*', -- Downloads pre-built binaries (fast!)
opts = {
keymap = {
preset = 'none',
['<CR>'] = { 'select_next', 'fallback' },
['<S-CR>'] = { 'select_prev', 'fallback' },
['<Tab>'] = { 'accept', 'fallback' },
['<C-space>'] = { 'show', 'show_documentation', 'hide_documentation' },
},
sources = {
default = { 'lsp', 'path', 'snippets', 'buffer' },
},
},
},
}

18
lua/plugins/nerdtree.lua Normal file
View File

@@ -0,0 +1,18 @@
return {
'nvim-tree/nvim-tree.lua',
dependencies = { 'nvim-tree/nvim-web-devicons' },
config = function()
require("nvim-tree").setup({
view = {
side = "left",
width = 30,
},
actions = {
open_file = {
-- This is the "open in adjacent pane" equivalent
window_picker = { enable = true },
},
},
})
end,
}