.config/nvim/lua/config/lsp.lua

Sun, 19 Feb 2023 11:31:07 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 19 Feb 2023 11:31:07 -0600
changeset 1028
77e65ab97892
parent 1022
d509e282ae10
child 1030
03d507b3c122
permissions
-rw-r--r--

fsckobjects has also been a nuisance. maybe git just isn't great at integrity!

1016
07d37da233ef Add lsp-specific config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 vim.diagnostic.config({
07d37da233ef Add lsp-specific config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 virtual_text = { true, severity = "WARN", },
07d37da233ef Add lsp-specific config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3 })
07d37da233ef Add lsp-specific config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4
07d37da233ef Add lsp-specific config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 vim.api.nvim_create_autocmd("LspAttach", {
07d37da233ef Add lsp-specific config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 once = true,
07d37da233ef Add lsp-specific config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 callback = function(args)
07d37da233ef Add lsp-specific config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 vim.opt.number = true
07d37da233ef Add lsp-specific config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 end,
07d37da233ef Add lsp-specific config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 })

mercurial