add sops, change lsp select
This commit is contained in:
@@ -29,7 +29,7 @@ return {
|
||||
require('mason-lspconfig').setup({
|
||||
-- Replace the language servers listed here
|
||||
-- with the ones you want to install
|
||||
ensure_installed = { 'tsserver', 'lua_ls', 'gopls', 'pylsp', 'gitlab_ci_ls', 'yamlls', 'ansiblels'},
|
||||
ensure_installed = { 'tsserver', 'lua_ls', 'gopls', 'pylsp', 'gitlab_ci_ls', 'yamlls', 'ansiblels', 'terraformls'},
|
||||
handlers = {
|
||||
function(server_name)
|
||||
require('lspconfig')[server_name].setup({})
|
||||
@@ -52,7 +52,7 @@ return {
|
||||
luasnip.expand()
|
||||
else
|
||||
cmp.confirm({
|
||||
select = true,
|
||||
select = false,
|
||||
})
|
||||
end
|
||||
else
|
||||
|
||||
13
lua/crentist/lazy/sops.lua
Normal file
13
lua/crentist/lazy/sops.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
'lucidph3nx/nvim-sops',
|
||||
event = { 'BufEnter' },
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
},
|
||||
keys = {
|
||||
{ '<leader>ef', vim.cmd.SopsEncrypt, desc = '[E]ncrypt [F]ile' },
|
||||
{ '<leader>df', vim.cmd.SopsDecrypt, desc = '[D]ecrypt [F]ile' },
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user