nix-config/rsc/config/nvim/configs/lspconfig.lua
2023-11-04 14:57:21 +01:00

26 lines
581 B
Lua

local config = require("plugins.configs.lspconfig")
local on_attach = config.on_attach
local capabilities = config.capabilities
local lspconfig = require("lspconfig")
lspconfig.pyright.setup({
on_attach = on_attach,
capabilities = capabilities,
filetypes = {"python"},
})
lspconfig.rnix.setup({
on_attach = on_attach,
capabilities = capabilities,
filetypes = {"nix"},
})
lspconfig.clangd.setup {
on_attach = function(client, bufnr)
client.server_capabilities.signatureHelpProvider = false
on_attach(client, bufnr)
end,
capabilities = capabilities,
}