diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-03-01 18:05:15 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-03-01 18:10:33 +0530 |
commit | 5aacff03453e505ee6e5181e3247676239570dbc (patch) | |
tree | ea6208d4f10ef33bf28d20c921469e0fde722486 /lua/plugins/opts/lspconfig.lua | |
parent | 1f7b1559e41b62a6ddef67bedf52dfe3b6cafd18 (diff) |
plugins/lsp: init
Diffstat (limited to 'lua/plugins/opts/lspconfig.lua')
-rw-r--r-- | lua/plugins/opts/lspconfig.lua | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lua/plugins/opts/lspconfig.lua b/lua/plugins/opts/lspconfig.lua new file mode 100644 index 0000000..798e6c8 --- /dev/null +++ b/lua/plugins/opts/lspconfig.lua @@ -0,0 +1,35 @@ +local lspconfig = require "lspconfig" +local lsp_zero = require "lsp-zero" + +lsp_zero.extend_lspconfig() +lsp_zero.set_sign_icons({ + error = " ", + warn = " ", + info = " ", + hint = " " +}) +lsp_zero.on_attach(function(_, bufnr) + lsp_zero.default_keymaps({buffer = bufnr}) +end) + +lspconfig.lua_ls.setup(lsp_zero.nvim_lua_ls({ + settings = { + Lua = { + diagnostics = { + globals = { 'mp' } -- mpv global + } + } + } +})) + +lspconfig.ccls.setup { + init_options = { + cache = { + directory = vim.fn.stdpath('cache') .. '/ccls' + } + } +} + +lspconfig.bashls.setup {} +lspconfig.nil_ls.setup {} +lspconfig.pyright.setup {} |