summaryrefslogtreecommitdiff
path: root/vim/.config/nvim/lua/native-lsp.lua
blob: 556c01c2199da53a25b701e144ec32cdd436e114 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
vim.lsp.config('luals', {
  on_attach = function()
    print('luals is now active in this file')
  end,
})
if not string.match(vim.g.hostname, "cs.purdue.edu") then
  vim.lsp.enable("luals")
end


vim.lsp.config('pyright', {
  on_attach = function()
    print('pyright is now active in this file')
  end,
})

vim.lsp.enable("pyright")

vim.lsp.config('ty', {
  on_attach = function()
    print('ty is now active in this file')
  end,
})

-- vim.lsp.enable("ty")



vim.lsp.config('clangd', {
  on_attach = function()
    print('clangd is now active in this file')
  end,
})

vim.lsp.enable("clangd")

vim.lsp.config('tailwind-ls', {
  on_attach = function()
    print('tailwind-ls is now active in this file')
  end,
})

vim.lsp.enable("tailwind-ls")

vim.lsp.config('zls', {
  on_attach = function()
    print('zls is now active in this file')
  end,
})

vim.lsp.enable("zls")

vim.lsp.enable("gopls")

-- https://lsp-zero.netlify.app/blog/lsp-client-features.html

vim.opt.completeopt = {'menu', 'menuone', 'noselect', 'noinsert'}
vim.opt.shortmess:append('c')