diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-02-09 13:50:40 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-02-09 13:50:40 +0200 |
| commit | 6f30ffdb0a3e33a375faea6b452d97744dfe3c81 (patch) | |
| tree | a87a7505aeb73bb7e4cf6f69620d3d5c9e42efe4 | |
| parent | dab62dec0675d3acbe06875941a86f745e0b907a (diff) | |
| download | dotfiles-6f30ffdb0a3e33a375faea6b452d97744dfe3c81.tar.gz dotfiles-6f30ffdb0a3e33a375faea6b452d97744dfe3c81.zip | |
Moved mason configuration to lsp.lua
| -rw-r--r-- | lua/plugins/mason.lua | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/lua/plugins/mason.lua b/lua/plugins/mason.lua deleted file mode 100644 index f2ec631..0000000 --- a/lua/plugins/mason.lua +++ /dev/null @@ -1,65 +0,0 @@ --- Setup mason so it can manage external tooling -require('mason').setup() - --- Ensure the servers above are installed - -require("mason-lspconfig").setup({ - ensure_installed = { - "pylsp", - "pyright", - "clangd", - "sumneko_lua", - "vim-language-server", - } -}) - - -local keymap = vim.api.nvim_set_keymap -local opts = { noremap = true } - - -keymap('n', 'gd', ':lua vim.lsp.buf.definition()<cr>', opts) -keymap('n', 'gD', ':lua vim.lsp.buf.declaration()<cr>', opts) -keymap('n', 'gi', ':lua vim.lsp.buf.implementation()<cr>', opts) -keymap('n', 'gw', ':lua vim.lsp.buf.document_symbol()<cr>', opts) -keymap('n', 'gw', ':lua vim.lsp.buf.workspace_symbol()<cr>', opts) -keymap('n', 'gr', ':lua vim.lsp.buf.references()<cr>', opts) -keymap('n', 'gt', ':lua vim.lsp.buf.type_definition()<cr>', opts) -keymap('n', 'K', ':lua vim.lsp.buf.hover()<cr>', opts) -keymap('n', '<c-k>', ':lua vim.lsp.buf.signature_help()<cr>', opts) -keymap('n', '<leader>af', ':lua vim.lsp.buf.code_action()<cr>', opts) -keymap('n', '<leader>rn', ':lua vim.lsp.buf.rename()<cr>', opts) - - - ---local mason = require("mason") --- ---local options = { --- ensure_installed = { "lua-language-server" }, -- not an option from mason.nvim --- --- ui = { --- icons = { --- package_pending = " ", --- package_installed = " ", --- package_uninstalled = " ﮊ", --- }, --- --- keymaps = { --- toggle_server_expand = "<CR>", --- install_server = "i", --- update_server = "u", --- check_server_version = "c", --- update_all_servers = "U", --- check_outdated_servers = "C", --- uninstall_server = "X", --- cancel_installation = "<C-c>", --- }, --- }, --- --- max_concurrent_installers = 10, ---} --- --- --- ---mason.setup(options) - |
