diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-02-12 17:14:25 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-02-12 17:14:25 +0200 |
| commit | 522b51ecca10ade3de8ddf9b11f9800f8ad38fde (patch) | |
| tree | 8e4d52658746f34bcb95554cd431ad656b37ff56 | |
| parent | 6a68f257996e01f12a88a735cf949e9f07e8a198 (diff) | |
| download | dotfiles-522b51ecca10ade3de8ddf9b11f9800f8ad38fde.tar.gz dotfiles-522b51ecca10ade3de8ddf9b11f9800f8ad38fde.zip | |
Changed 'utils.lua' and 'local utils' to 'mods.lua' and 'local mods' respectively
| -rw-r--r-- | lua/plugins/lsp.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 548df74..4bcfeea 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -1,7 +1,7 @@ -- Shorten Function Names local fn = vim.fn local keymap = vim.keymap -local utils = require("user.utils") +local mods = require("user.mods") -- Setup mason so it can manage external tooling @@ -156,7 +156,7 @@ capabilities.offsetEncoding = { "utf-16" } local lspconfig = require("lspconfig") -if utils.executable("pylsp") then +if mods.executable("pylsp") then lspconfig.pylsp.setup({ settings = { pylsp = { @@ -179,7 +179,7 @@ else vim.notify("pylsp not found!", vim.log.levels.WARN, { title = "Server?" }) end -if utils.executable('pyright') then +if mods.executable('pyright') then lspconfig.pyright.setup{ on_attach = on_attach, capabilities = capabilities @@ -188,7 +188,7 @@ else vim.notify("pyright not found!", vim.log.levels.WARN, {title = 'Server?'}) end -if utils.executable("clangd") then +if mods.executable("clangd") then lspconfig.clangd.setup({ on_attach = on_attach, capabilities = capabilities, @@ -202,7 +202,7 @@ else end -- Set up vim-language-server -if utils.executable("vim-language-server") then +if mods.executable("vim-language-server") then lspconfig.vimls.setup({ on_attach = on_attach, flags = { @@ -215,14 +215,14 @@ else end -- Set up bash-language-server -if utils.executable("bash-language-server") then +if mods.executable("bash-language-server") then lspconfig.bashls.setup({ on_attach = on_attach, capabilities = capabilities, }) end -if utils.executable("lua-language-server") then +if mods.executable("lua-language-server") then lspconfig.lua_ls.setup({ on_attach = on_attach, settings = { @@ -251,7 +251,7 @@ if utils.executable("lua-language-server") then end -if utils.executable("rust-language-server") then +if mods.executable("rust-language-server") then require("lspconfig").rust_analyzer.setup{ cmd = { "rustup", "run", "nightly", "rust-analyzer" }, on_attach = on_attach, |
