diff options
| Commit | f1acdc67a1da459bec691e187782379560f0e9e7 (patch) | |
|---|---|---|
| Author | 2024-08-05 18:03:45 +0300 | |
| Committer | 2024-08-05 18:03:45 +0300 | |
| Files | 72f815c4fa965fd4cdfab938989616f1473fe79a /lua/plugins/lsp.lua | |
| anderson-f1acdc67a1da459bec691e187782379560f0e9e7.tar anderson-f1acdc67a1da459bec691e187782379560f0e9e7.tar.gz anderson-f1acdc67a1da459bec691e187782379560f0e9e7.zip | ||
| Parent | 2aaa34a57a53c2b11a00f60ac9467d086e36c5d2 (diff) | |
feat(lsp): Moved nvim-treesitter to lsp file (formerly lsp-config)
1 files changed, 41 insertions, 0 deletions
| -rw-r--r-- | lua/plugins/lsp.lua | 41 |
diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua new file mode 100644 index 0000000..8144527 --- /dev/null +++ b/lua/plugins/lsp.lua @@ -0,0 +1,41 @@ +-- Thanks https://stackoverflow.com/a/70760302/12036073 +vim.o.updatetime = 300 +vim.diagnostic.config({ + virtual_text = false, + float = { focus = false }, +}) +vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, { callback = function(ev) + vim.diagnostic.open_float(nil) +end}) + +return { + { + "nvim-treesitter/nvim-treesitter", -- Advanced syntax parsing + build = ":TSUpdate", + opts = { + ensure_installed = "all", + ignore_install = { "liquidsoap", "tlaplus", "yaml" }, -- Can't compile + highlight = { enable = true }, + incremental_selection = { enable = true }, + textobjects = { enable = true }, + }, + config = function(_, opts) + require("nvim-treesitter.configs").setup(opts) + end, + }, + { + "neovim/nvim-lspconfig", + enabled = false, -- Figure out config property + event = "LazyFile", + -- dependencies = { + -- "mason.nvim", + -- { "williamboman/mason-lspconfig.nvim", config = function() end }, + -- }, + opts = { + servers = { + awk_ls = { settings = {}, }, + }, + }, + setup = {}, + }, +} |
