nix-config/rsc/config/nvim/configs/lspconfig.lua
2023-11-26 16:38:50 +01:00

26 lines
602 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,
-- }