Replace Mason, nvim-lspconfig, nvim-cmp stack, harpoon, lazygit-nvim, nvim-notify, nvim-treesitter-context, and cmp-buffer with Neovim 0.12 native features (17 plugins down to 9). Also drop oil, fugitive. LSP servers (gopls, lua-language-server, typescript-language-server) are now installed via Nix instead of Mason runtime downloads. Server configs use explicit vim.lsp.config() calls instead of nvim-lspconfig. Native LSP completion replaces nvim-cmp, using the documented triggerCharacters extension approach for auto-triggering on every keystroke. Also adds: inlay hints (disabled for Rust), virtual_lines diagnostics, rounded winborder/pumborder, treesitter vim.treesitter.start() autocmd for the 0.12 rewrite, and a terminal-based lazygit keymap.
5 lines
170 B
Lua
5 lines
170 B
Lua
vim.api.nvim_create_autocmd("FileType", {
|
|
callback = function(ev)
|
|
pcall(vim.treesitter.start, ev.buf, vim.treesitter.language.get_lang(ev.match) or ev.match)
|
|
end,
|
|
})
|