aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/lsp.lua')
-rw-r--r--.config/nvim/lua/lsp.lua48
1 files changed, 25 insertions, 23 deletions
diff --git a/.config/nvim/lua/lsp.lua b/.config/nvim/lua/lsp.lua
index f404e3d..c228893 100644
--- a/.config/nvim/lua/lsp.lua
+++ b/.config/nvim/lua/lsp.lua
@@ -23,23 +23,25 @@ cmp.setup({
{
name = "nvim_lsp";
entry_filter = function(entry, ctx)
- return require('cmp.types').lsp.CompletionItemKind[entry:get_kind()] ~= 'Text'
+ return require("cmp.types").lsp.CompletionItemKind[entry:get_kind()] ~=
+ "Text"
end;
};
{
name = "vsnip";
entry_filter = function(entry, ctx)
- return require('cmp.types').lsp.CompletionItemKind[entry:get_kind()] ~= 'Text'
+ return require("cmp.types").lsp.CompletionItemKind[entry:get_kind()] ~=
+ "Text"
end;
};
- },
- {
+ }, {
{
name = "buffer";
entry_filter = function(entry, ctx)
- return require('cmp.types').lsp.CompletionItemKind[entry:get_kind()] ~= 'Text'
+ return require("cmp.types").lsp.CompletionItemKind[entry:get_kind()] ~=
+ "Text"
end;
- }
+ };
});
})
@@ -239,23 +241,23 @@ local null_ls = require("null-ls")
null_ls.setup({
sources = {
- null_ls.builtins.diagnostics.eslint,
- null_ls.builtins.formatting.eslint,
- -- null_ls.builtins.formatting.lua_format,
- -- null_ls.builtins.formatting.prettier,
- -- null_ls.builtins.formatting.rustfmt,
- -- null_ls.builtins.code_actions.shellcheck,
- -- null_ls.builtins.completion.spell,
- -- null_ls.builtins.diagnostics.tsc,
- -- null_ls.builtins.formatting.deno_fmt,
- -- null_ls.builtins.code_actions.gitsigns.with({
- -- config = {
- -- filter_actions = function(title)
- -- return title:lower():match("blame") == nil -- filter out blame actions
- -- end,
- -- },
- -- })
- },
+ null_ls.builtins.diagnostics.eslint;
+ null_ls.builtins.formatting.eslint;
+-- null_ls.builtins.formatting.lua_format;
+-- null_ls.builtins.formatting.prettier;
+ null_ls.builtins.formatting.rustfmt;
+-- null_ls.builtins.code_actions.shellcheck;
+-- null_ls.builtins.completion.spell;
+-- null_ls.builtins.diagnostics.tsc;
+-- null_ls.builtins.formatting.deno_fmt;
+-- null_ls.builtins.code_actions.gitsigns.with({
+-- config = {
+-- filter_actions = function(title)
+-- return title:lower():match("blame") == nil -- filter out blame actions
+-- end;
+-- };
+-- });
+ };
})
vim.diagnostic.config({