Правки вима, убрал пкм+лкм=скм
This commit is contained in:
parent
16d44a3d12
commit
b7a43f2740
6 changed files with 12 additions and 13 deletions
|
@ -18,6 +18,7 @@
|
||||||
accelProfile = "flat";
|
accelProfile = "flat";
|
||||||
scrollMethod = "button";
|
scrollMethod = "button";
|
||||||
scrollButton = 9; # Узнать айди можно через `xev -event button | grep button`
|
scrollButton = 9; # Узнать айди можно через `xev -event button | grep button`
|
||||||
|
middleEmulation = false;
|
||||||
};
|
};
|
||||||
touchpad = {
|
touchpad = {
|
||||||
accelProfile = "flat";
|
accelProfile = "flat";
|
||||||
|
|
|
@ -98,9 +98,9 @@ vim.api.nvim_create_autocmd('User', {
|
||||||
nested = true,
|
nested = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.keymap.set('n', '<Space><BS>', function()
|
-- vim.keymap.set('n', '<Space><BS>', function()
|
||||||
restore_session()
|
-- restore_session()
|
||||||
end, { desc = 'Restore session' })
|
-- end, { desc = 'Restore session' })
|
||||||
|
|
||||||
-- Session delete
|
-- Session delete
|
||||||
vim.keymap.set('n', '<Space>Sd', function()
|
vim.keymap.set('n', '<Space>Sd', function()
|
||||||
|
|
|
@ -68,12 +68,12 @@ return {
|
||||||
-- This will auto-import if your LSP supports it.
|
-- This will auto-import if your LSP supports it.
|
||||||
-- This will expand snippets if the LSP sent a snippet.
|
-- This will expand snippets if the LSP sent a snippet.
|
||||||
-- ['<C-y>'] = cmp.mapping.confirm { select = true },
|
-- ['<C-y>'] = cmp.mapping.confirm { select = true },
|
||||||
['<C-Tab>'] = cmp.mapping.confirm { select = true },
|
['<Tab>'] = cmp.mapping.confirm { select = true },
|
||||||
|
|
||||||
-- If you prefer more traditional completion keymaps,
|
-- If you prefer more traditional completion keymaps,
|
||||||
-- you can uncomment the following lines
|
-- you can uncomment the following lines
|
||||||
-- ['<CR>'] = cmp.mapping.confirm { select = true },
|
-- ['<CR>'] = cmp.mapping.confirm { select = true },
|
||||||
['<Tab>'] = cmp.mapping.select_next_item(),
|
['<C-Tab>'] = cmp.mapping.select_next_item(),
|
||||||
['<S-Tab>'] = cmp.mapping.select_prev_item(),
|
['<S-Tab>'] = cmp.mapping.select_prev_item(),
|
||||||
|
|
||||||
-- Allows Up arrow to fall back without interacting with cmp
|
-- Allows Up arrow to fall back without interacting with cmp
|
||||||
|
|
|
@ -216,7 +216,11 @@ return {
|
||||||
lspconfig.nixd.setup {}
|
lspconfig.nixd.setup {}
|
||||||
|
|
||||||
-- Golang
|
-- Golang
|
||||||
lspconfig.gopls.setup {}
|
lspconfig.gopls.setup {
|
||||||
|
completion = {
|
||||||
|
unimported = false,
|
||||||
|
},
|
||||||
|
}
|
||||||
lspconfig.templ.setup {}
|
lspconfig.templ.setup {}
|
||||||
|
|
||||||
-- Frontend
|
-- Frontend
|
||||||
|
|
|
@ -46,12 +46,6 @@ vim.api.nvim_create_autocmd('FileType', {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Fix .sqlfluff highlight
|
|
||||||
vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
|
|
||||||
pattern = '*.sqlfluff',
|
|
||||||
command = 'set filetype=toml',
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Enable mouse mode, can be useful for resizing splits for example!
|
-- Enable mouse mode, can be useful for resizing splits for example!
|
||||||
vim.opt.mouse = 'a'
|
vim.opt.mouse = 'a'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue