fix: bad cmp suggestions
This commit is contained in:
parent
c9d041e710
commit
235f9a6fe4
2
bin/m
2
bin/m
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
[ -n "$TMUX" ] && tmux rename-window "neomutt"
|
||||
cd ~/Desktop
|
||||
neomutt
|
||||
cd -
|
||||
[ -n "$TMUX" ] && tmux set automatic-rename on
|
||||
|
|
|
@ -30,7 +30,7 @@ require("packer").startup(function(use)
|
|||
|
||||
-- lsp
|
||||
use "neovim/nvim-lspconfig"
|
||||
use "jose-elias-alvarez/null-ls.nvim"
|
||||
-- use "jose-elias-alvarez/null-ls.nvim"
|
||||
|
||||
-- nvim-cmp
|
||||
use "hrsh7th/nvim-cmp" -- The completion plugin
|
||||
|
|
|
@ -35,11 +35,11 @@ local language_servers = {
|
|||
-- document_formatting = false,
|
||||
-- document_range_formatting = false,
|
||||
-- }
|
||||
on_attach = function(client, bufnr)
|
||||
on_attach(client, bufnr)
|
||||
client.resolved_capabilities.document_formatting = false
|
||||
client.resolved_capabilities.document_range_formatting = false
|
||||
end
|
||||
-- on_attach = function(client, bufnr)
|
||||
-- on_attach(client, bufnr)
|
||||
-- client.resolved_capabilities.document_formatting = false
|
||||
-- client.resolved_capabilities.document_range_formatting = false
|
||||
-- end
|
||||
},
|
||||
-- grammarly = {},
|
||||
-- marksman = {},
|
||||
|
@ -134,15 +134,15 @@ if cmp_status_ok and luasnip_status_ok then
|
|||
end
|
||||
|
||||
|
||||
local null_ls_ok, null_ls = pcall(require, "null-ls")
|
||||
if null_ls_ok then
|
||||
null_ls.setup({
|
||||
sources = {
|
||||
null_ls.builtins.formatting.stylua,
|
||||
null_ls.builtins.diagnostics.eslint,
|
||||
null_ls.builtins.completion.spell,
|
||||
null_ls.builtins.formatting.goimports,
|
||||
null_ls.builtins.formatting.gofumpt,
|
||||
},
|
||||
})
|
||||
end
|
||||
-- local null_ls_ok, null_ls = pcall(require, "null-ls")
|
||||
-- if null_ls_ok then
|
||||
-- null_ls.setup({
|
||||
-- sources = {
|
||||
-- -- null_ls.builtins.formatting.stylua,
|
||||
-- null_ls.builtins.diagnostics.eslint,
|
||||
-- null_ls.builtins.completion.spell,
|
||||
-- null_ls.builtins.formatting.goimports,
|
||||
-- null_ls.builtins.formatting.gofumpt,
|
||||
-- },
|
||||
-- })
|
||||
-- end
|
||||
|
|
Loading…
Reference in New Issue
Block a user