Summary Files Commits Branches @commit @diff @stats
path: root / lua / plugins / lsp-config.lua
diff options
context:
space:
mode:
1 files changed, 27 insertions, 0 deletions
-rw-r--r--lua/plugins/lsp-config.lua27
diff --git a/lua/plugins/lsp-config.lua b/lua/plugins/lsp-config.lua
new file mode 100644
index 0000000..2ca9ac5
--- /dev/null
+++ b/lua/plugins/lsp-config.lua
@@ -0,0 +1,27 @@
+-- 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 {
+ {
+ "neovim/nvim-lspconfig",
+ enabled = false, -- Figure out config property
+ event = { "BufReadPre", "BufNewFile" },
+ -- dependencies = {
+ -- "mason.nvim",
+ -- { "williamboman/mason-lspconfig.nvim", config = function() end },
+ -- },
+ opts = {
+ servers = {
+ awk_ls = { settings = {}, },
+ },
+ },
+ setup = {},
+ },
+}