update nvim

This commit is contained in:
Nydragon 2024-04-30 16:16:34 +09:00
parent ae593f7999
commit 3c46257653
4 changed files with 10 additions and 1 deletions

View file

@ -25,6 +25,12 @@ local function build()
c = {
require("formatter.filetypes.c").clangformat,
},
r = {
require("formatter.filetypes.r").styler,
},
python = {
require("formatter.filetypes.python").black,
},
["*"] = {
require("formatter.filetypes.any").remove_trailing_whitespace,
},

View file

@ -34,7 +34,7 @@ cmp.setup({
},
sources = {
{ name = "path" }, -- file paths
{ name = "nvim_lsp", keyword_length = 3 }, -- from language server
{ name = "nvim_lsp", keyword_length = 1 }, -- from language server
{ name = "nvim_lsp_signature_help" }, -- display function signatures with current parameter emphasized
{ name = "nvim_lua", keyword_length = 2 }, -- complete neovim's Lua runtime API such vim.lsp.*
{ name = "buffer", keyword_length = 2 }, -- source current buffer

View file

@ -48,3 +48,5 @@ require("lspconfig").clangd.setup({})
require("lspconfig").rust_analyzer.setup({})
require("lspconfig").nixd.setup({})
require("lspconfig").r_language_server.setup({})

View file

@ -92,6 +92,7 @@ require("lazy").setup({
"hrsh7th/cmp-nvim-lua",
"hrsh7th/cmp-nvim-lsp-signature-help",
"hrsh7th/cmp-vsnip",
"hrsh7th/vim-vsnip",
},
init = function()
require("nvim-cmp-config")