Правки вима, убрал пкм+лкм=скм
This commit is contained in:
parent
16d44a3d12
commit
b7a43f2740
6 changed files with 12 additions and 13 deletions
|
@ -570,4 +570,4 @@ Wifi
|
|||
- **Base0E** – **Class Names/Constructors**: Акцентный цвет для имён классов или конструкторов. Фиолетовый.
|
||||
- **Base0F** – **Deprecated Elements/Exceptions**: Обычно используется для устаревших элементов или исключений. Коричневый.
|
||||
|
||||
Эти цвета обеспечивают чёткую структуру для создания тем, где легко отличить синтаксические элементы или UI-компоненты.
|
||||
Эти цвета обеспечивают чёткую структуру для создания тем, где легко отличить синтаксические элементы или UI-компоненты.
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
accelProfile = "flat";
|
||||
scrollMethod = "button";
|
||||
scrollButton = 9; # Узнать айди можно через `xev -event button | grep button`
|
||||
middleEmulation = false;
|
||||
};
|
||||
touchpad = {
|
||||
accelProfile = "flat";
|
||||
|
|
|
@ -98,9 +98,9 @@ vim.api.nvim_create_autocmd('User', {
|
|||
nested = true,
|
||||
})
|
||||
|
||||
vim.keymap.set('n', '<Space><BS>', function()
|
||||
restore_session()
|
||||
end, { desc = 'Restore session' })
|
||||
-- vim.keymap.set('n', '<Space><BS>', function()
|
||||
-- restore_session()
|
||||
-- end, { desc = 'Restore session' })
|
||||
|
||||
-- Session delete
|
||||
vim.keymap.set('n', '<Space>Sd', function()
|
||||
|
|
|
@ -68,12 +68,12 @@ return {
|
|||
-- 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 },
|
||||
['<C-Tab>'] = cmp.mapping.confirm { select = true },
|
||||
['<Tab>'] = cmp.mapping.confirm { select = true },
|
||||
|
||||
-- If you prefer more traditional completion keymaps,
|
||||
-- you can uncomment the following lines
|
||||
-- ['<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(),
|
||||
|
||||
-- Allows Up arrow to fall back without interacting with cmp
|
||||
|
|
|
@ -216,7 +216,11 @@ return {
|
|||
lspconfig.nixd.setup {}
|
||||
|
||||
-- Golang
|
||||
lspconfig.gopls.setup {}
|
||||
lspconfig.gopls.setup {
|
||||
completion = {
|
||||
unimported = false,
|
||||
},
|
||||
}
|
||||
lspconfig.templ.setup {}
|
||||
|
||||
-- Frontend
|
||||
|
|
|
@ -46,12 +46,6 @@ vim.api.nvim_create_autocmd('FileType', {
|
|||
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!
|
||||
vim.opt.mouse = 'a'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue