aboutsummaryrefslogtreecommitdiff
path: root/nvim/lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lsp.lua')
-rw-r--r--nvim/lsp.lua60
1 files changed, 30 insertions, 30 deletions
diff --git a/nvim/lsp.lua b/nvim/lsp.lua
index 299dedc..fbb5066 100644
--- a/nvim/lsp.lua
+++ b/nvim/lsp.lua
@@ -1,43 +1,44 @@
1vim.lsp.config.clangd = { 1vim.lsp.config.clangd = {
2 cmd = { '/usr/local/bin/clangd19', '--background-index', '--function-arg-placeholders' }, 2 cmd = { '/usr/local/bin/clangd19', '--background-index', '--function-arg-placeholders' },
3 root_markers = { 'compile_commands.json', 'compile_flags.txt' }, 3 root_markers = { 'compile_commands.json', 'compile_flags.txt' },
4 filetypes = { 'c', 'cpp' }, 4 filetypes = { 'c', 'cpp' },
5} 5}
6 6
7vim.lsp.config.lua_ls = { 7vim.lsp.config.lua_ls = {
8 settings = { 8 settings = {
9 Lua = { 9 Lua = {
10 runtime = { 10 runtime = {
11 version = 'LuaJIT', 11 version = 'LuaJIT',
12 }, 12 },
13 diagnostics = { 13 diagnostics = {
14 globals = {'vim'}, 14 globals = { 'vim' },
15 }, 15 },
16 workspace = { 16 workspace = {
17 library = vim.api.nvim_get_runtime_file("", true), 17 library = vim.api.nvim_get_runtime_file("", true),
18 }, 18 },
19 telemetry = { 19 telemetry = {
20 enable = false, 20 enable = false,
21 }, 21 },
22 }, 22 },
23 } 23 }
24} 24}
25 25
26local project_library_path = "/home/t/.local/lib/node_modules" 26local project_library_path = "/home/t/.local/lib/node_modules"
27local ng_cmd = {"ngserver", "--stdio", "--tsProbeLocations", project_library_path , "--ngProbeLocations", project_library_path} 27local ng_cmd = { "ngserver", "--stdio", "--tsProbeLocations", project_library_path, "--ngProbeLocations",
28 project_library_path }
28 29
29vim.lsp.config.angularls = { 30vim.lsp.config.angularls = {
30 cmd = ng_cmd, 31 cmd = ng_cmd,
31 on_new_config = function(new_config,new_root_dir) 32 on_new_config = function(new_config, new_root_dir)
32 new_config.cmd = ng_cmd 33 new_config.cmd = ng_cmd
33 end, 34 end,
34} 35}
35 36
36vim.lsp.config.markdown_oxide = { 37vim.lsp.config.markdown_oxide = {
37 on_attach = on_attach, 38 on_attach = on_attach,
38 cmd = { 39 cmd = {
39 'markdown-oxide' 40 'markdown-oxide'
40 } 41 }
41} 42}
42 43
43vim.lsp.enable({ 44vim.lsp.enable({
@@ -55,6 +56,5 @@ vim.lsp.enable({
55 56
56vim.diagnostic.config({ 57vim.diagnostic.config({
57 virtual_text = true, 58 virtual_text = true,
58 virtual_lines = true 59 -- virtual_lines = true
59}) 60})
60