summaryrefslogtreecommitdiff
path: root/lua/user/lsp/lsp-installer.lua
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-06-03 17:10:13 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-06-03 17:10:13 +0100
commit12ce7a91fe9dab694d077ed2e3be422c89d445ac (patch)
treeb82ad00d9cd023a5c2c592fc032fc28130f61d65 /lua/user/lsp/lsp-installer.lua
parentb8e8fccb00dafc937ab84c90fc4ad90bc982fe98 (diff)
Added LSP setting files, added these files
to the lsp-installer. Also added lua.lua to enable the key binding gf to recognise lua pathnames
Diffstat (limited to 'lua/user/lsp/lsp-installer.lua')
-rw-r--r--lua/user/lsp/lsp-installer.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/lua/user/lsp/lsp-installer.lua b/lua/user/lsp/lsp-installer.lua
index f539050..ac8f40c 100644
--- a/lua/user/lsp/lsp-installer.lua
+++ b/lua/user/lsp/lsp-installer.lua
@@ -26,6 +26,31 @@ lsp_installer.on_server_ready(function(server)
opts = vim.tbl_deep_extend("force", pyright_opts, opts)
end
+ if server.name == "awk_ls" then
+ local awk_opts = require("user.lsp.settings.awk_ls")
+ opts = vim.tbl_deep_extend("force", awk_opts, opts)
+ end
+
+ if server.name == "bashls" then
+ local bash_opts = require("user.lsp.settings.bashls")
+ opts = vim.tbl_deep_extend("force", bash_opts, opts)
+ end
+
+ if server.name == "clangd" then
+ local clangd_opts = require("user.lsp.settings.clangd")
+ opts = vim.tbl_deep_extend("force", clangd_opts, opts)
+ end
+
+ if server.name == "cmake" then
+ local cmake_opts = require("user.lsp.settings.cmake")
+ opts = vim.tbl_deep_extend("force", cmake_opts, opts)
+ end
+
+ if server.name == "html" then
+ local html_opts = require("user.lsp.settings.html")
+ opts = vim.tbl_deep_extend("force", html_opts, opts)
+ end
+
-- This setup() function is exactly the same as lspconfig's setup function.
-- Refer to https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
server:setup(opts)