update
This commit is contained in:
parent
859fbb0612
commit
f259ac15a8
@ -5,6 +5,17 @@ local lspconfig = require('lspconfig')
|
|||||||
-- luasnip setup
|
-- luasnip setup
|
||||||
local luasnip = require 'luasnip'
|
local luasnip = require 'luasnip'
|
||||||
local highlight = require('cmp.utils.highlight')
|
local highlight = require('cmp.utils.highlight')
|
||||||
|
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||||
|
|
||||||
|
local has_words_before = function()
|
||||||
|
if vim.api.nvim_buf_get_option(0, "buftype") == "prompt" then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
|
||||||
|
return col ~= 0 and
|
||||||
|
vim.api.nvim_buf_get_text(0, line - 1, 0, line - 1, col, {})[1]:match(
|
||||||
|
"^%s*$") == nil
|
||||||
|
end
|
||||||
|
|
||||||
lspkind.init({ symbol_map = { Copilot = "" } })
|
lspkind.init({ symbol_map = { Copilot = "" } })
|
||||||
|
|
||||||
@ -201,8 +212,6 @@ cmp.setup.cmdline(':', {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
|
||||||
|
|
||||||
local servers = {
|
local servers = {
|
||||||
'bashls', 'jedi_language_server', 'jsonls', 'yamlls', 'vimls', 'dotls',
|
'bashls', 'jedi_language_server', 'jsonls', 'yamlls', 'vimls', 'dotls',
|
||||||
'dockerls', 'html', 'cssls', 'lua_ls'
|
'dockerls', 'html', 'cssls', 'lua_ls'
|
||||||
|
@ -20,7 +20,7 @@ ts.setup({
|
|||||||
-- map actions.which_key to <C-h> (default: <C-/>)
|
-- map actions.which_key to <C-h> (default: <C-/>)
|
||||||
-- actions.which_key shows the mappings for your picker,
|
-- actions.which_key shows the mappings for your picker,
|
||||||
-- e.g. git_{create, delete, ...}_branch for the git_branches picker
|
-- e.g. git_{create, delete, ...}_branch for the git_branches picker
|
||||||
-- ["<C-/?>"] = "which_key"
|
["<C-/>"] = "which_key"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
file_ignore_patterns = { "^node_modules/", "^env/", "^__pycache__/" }
|
file_ignore_patterns = { "^node_modules/", "^env/", "^__pycache__/" }
|
||||||
|
Loading…
Reference in New Issue
Block a user