aboutsummaryrefslogtreecommitdiff
path: root/vim/.config/nvim/lua/native-lsp.lua
blob: 9bc4856020fa1ca8dc8ca3564589ecd5ba81cca3 (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
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('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")

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

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