update neovim to 0.11
This commit is contained in:
parent
4df2ccabca
commit
d00cf25fde
5 changed files with 16 additions and 14 deletions
|
|
@ -476,7 +476,7 @@
|
|||
## IDE ##
|
||||
#########
|
||||
|
||||
neovim
|
||||
pkgs2.neovim
|
||||
|
||||
###########
|
||||
## Icons ##
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
return {
|
||||
{
|
||||
'mrcjkb/rustaceanvim',
|
||||
version = '^5', -- Recommended
|
||||
version = '^6', -- Recommended
|
||||
lazy = false, -- This plugin is already lazy
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ return {
|
|||
'nvim-neotest/nvim-nio',
|
||||
|
||||
-- Installs the debug adapters for you
|
||||
'williamboman/mason.nvim',
|
||||
'mason-org/mason.nvim',
|
||||
'jay-babu/mason-nvim-dap.nvim',
|
||||
|
||||
-- Add your own debuggers here
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ return {
|
|||
'neovim/nvim-lspconfig',
|
||||
dependencies = {
|
||||
-- Automatically install LSPs and related tools to stdpath for Neovim
|
||||
{ 'williamboman/mason.nvim', config = true }, -- NOTE: Must be loaded before dependants
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
{ 'mason-org/mason.nvim', config = true }, -- NOTE: Must be loaded before dependants
|
||||
'mason-org/mason-lspconfig.nvim',
|
||||
'WhoIsSethDaniel/mason-tool-installer.nvim',
|
||||
|
||||
-- Useful status updates for LSP.
|
||||
|
|
@ -73,6 +73,15 @@ return {
|
|||
vim.keymap.set(mode, keys, func, { buffer = event.buf, desc = 'LSP: ' .. desc })
|
||||
end
|
||||
|
||||
-- Добавляем маппинг для hover с max_width = 80
|
||||
map('K', function()
|
||||
vim.lsp.buf.hover {
|
||||
max_width = 80,
|
||||
-- none, single, double, rounded, solid, shadow
|
||||
border = 'solid',
|
||||
}
|
||||
end, 'Hover Documentation')
|
||||
|
||||
-- Rename the variable under your cursor.
|
||||
-- Most Language Servers support renaming across files, etc.
|
||||
map('grn', vim.lsp.buf.rename, '[R]e[n]ame')
|
||||
|
|
|
|||
|
|
@ -81,13 +81,6 @@ vim.keymap.set('v', '<leader>y', '"+y', { desc = '[Y]ank to system clipboard' })
|
|||
vim.keymap.set('n', '<leader>d', '"+d', { desc = '[D]elete to system clipboard' })
|
||||
vim.keymap.set('v', '<leader>d', '"+d', { desc = '[D]elete to system clipboard' })
|
||||
|
||||
-- Change `K` hover documentation size
|
||||
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, {
|
||||
-- border = 'rounded',
|
||||
max_width = 80,
|
||||
-- max_height = 15,
|
||||
})
|
||||
|
||||
-- Move lines in visual mode
|
||||
vim.keymap.set('v', '<A-j>', ":m '>+1<CR>gv=gv")
|
||||
vim.keymap.set('v', '<A-Down>', ":m '>+1<CR>gv=gv")
|
||||
|
|
@ -201,11 +194,11 @@ vim.keymap.set('n', '<C-Up>', '<C-w><C-k>', { desc = 'Move focus to the upper wi
|
|||
|
||||
-- Highlight when yanking (copying) text
|
||||
-- Try it with `yap` in normal mode
|
||||
-- See `:help vim.highlight.on_yank()`
|
||||
-- See `:help vim.hl.on_yank()`
|
||||
vim.api.nvim_create_autocmd('TextYankPost', {
|
||||
desc = 'Highlight when yanking (copying) text',
|
||||
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
|
||||
callback = function()
|
||||
vim.highlight.on_yank()
|
||||
vim.hl.on_yank()
|
||||
end,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue