From 12ce7a91fe9dab694d077ed2e3be422c89d445ac Mon Sep 17 00:00:00 2001 From: "Vito G. Graffagnino" Date: Fri, 3 Jun 2022 17:10:13 +0100 Subject: 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 --- lua/user/lsp/lsp-installer.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'lua/user/lsp/lsp-installer.lua') 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) -- cgit v1.2.3