neocmakelsp/settings.lua
ShootingStarDragons 6fe3b63b4f chore: typos
2025-04-15 00:07:09 +09:00

40 lines
1.1 KiB
Lua

--local configs = require("lspconfig.configs")
local nvim_lsp = require("lspconfig")
return {
lsp = {
neocmake = {
cmd = vim.lsp.rpc.connect('127.0.0.1', 9257),
root_dir = function(fname)
return nvim_lsp.util.find_git_ancestor(fname)
end,
on_attach = function(client, bufnr)
vim.notify("Lsp Start")
require("cmps.cmp_onattach")(client, bufnr)
end,
capabilities = {
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true,
},
},
textDocument = {
completion = {
completionItem = {
snippetSupport = true
}
}
}
},
init_options = {
format = {
enable = true,
},
scan_cmake_in_package = false,
semantic_token = false,
use_snippets = false
}
}
}
}