aboutsummaryrefslogblamecommitdiff
path: root/lua/plugins/opts/lspconfig.lua
blob: 798e6c85aa247e8074d4a0fedd03142afccd7c91 (plain) (tree)


































                                                    
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 {}