Add ruff and enter as confirm
This commit is contained in:
parent
745201acb3
commit
13ed809d82
2
init.lua
2
init.lua
|
@ -558,6 +558,7 @@ require('lazy').setup({
|
|||
-- clangd = {},
|
||||
-- gopls = {},
|
||||
pyright = {},
|
||||
ruff = {},
|
||||
taplo = {}, -- LSP for toml files
|
||||
-- rust_analyzer = {},
|
||||
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
||||
|
@ -721,6 +722,7 @@ require('lazy').setup({
|
|||
-- This will auto-import if your LSP supports it.
|
||||
-- This will expand snippets if the LSP sent a snippet.
|
||||
['<C-y>'] = cmp.mapping.confirm { select = true },
|
||||
['<CR>'] = cmp.mapping.confirm { select = true },
|
||||
|
||||
-- Manually trigger a completion from nvim-cmp.
|
||||
-- Generally you don't need this, because nvim-cmp will display
|
||||
|
|
Loading…
Reference in New Issue