mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +00:00
nvim: lift up options
This commit is contained in:
parent
ca2e9d8f31
commit
1a802fb00d
1 changed files with 9 additions and 9 deletions
|
|
@ -72,6 +72,13 @@ for type, icon in pairs(signs) do
|
||||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Filetype aliases
|
||||||
|
vim.filetype.add {
|
||||||
|
extension = {
|
||||||
|
pcss = 'css',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
-- [[ Basic Keymaps ]]
|
-- [[ Basic Keymaps ]]
|
||||||
|
|
||||||
-- Remap for dealing with word wrap
|
-- Remap for dealing with word wrap
|
||||||
|
|
@ -85,7 +92,7 @@ vim.keymap.set('n', '<PageUp>', '<C-u>', { silent = true })
|
||||||
-- Open terminal
|
-- Open terminal
|
||||||
vim.keymap.set({ 'n' }, '<leader>t', ':terminal<CR>i', { silent = true })
|
vim.keymap.set({ 'n' }, '<leader>t', ':terminal<CR>i', { silent = true })
|
||||||
|
|
||||||
-- Escaping Terminal mode
|
-- Escape terminal mode
|
||||||
vim.keymap.set({ 't' }, ';;', '<C-\\><C-n>', { silent = true })
|
vim.keymap.set({ 't' }, ';;', '<C-\\><C-n>', { silent = true })
|
||||||
|
|
||||||
-- Window managment
|
-- Window managment
|
||||||
|
|
@ -115,13 +122,6 @@ vim.keymap.set('n', '<leader>gb', ':Gitsigns blame_line<CR>', { desc = 'Show git
|
||||||
vim.keymap.set({ 'n' }, '<BS>', ':nohl<CR>', { desc = 'Turn off highlight' })
|
vim.keymap.set({ 'n' }, '<BS>', ':nohl<CR>', { desc = 'Turn off highlight' })
|
||||||
vim.keymap.set({ 'n' }, '<ESC>', ':nohl<CR>', { desc = 'Turn off highlight' })
|
vim.keymap.set({ 'n' }, '<ESC>', ':nohl<CR>', { desc = 'Turn off highlight' })
|
||||||
|
|
||||||
-- Filetypes
|
|
||||||
vim.filetype.add {
|
|
||||||
extension = {
|
|
||||||
pcss = 'css',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- [[ Highlight on yank ]]
|
-- [[ Highlight on yank ]]
|
||||||
-- See `:help vim.highlight.on_yank()`
|
-- See `:help vim.highlight.on_yank()`
|
||||||
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
|
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
|
||||||
|
|
@ -388,8 +388,8 @@ end
|
||||||
local fzf_git_history = function()
|
local fzf_git_history = function()
|
||||||
fzf.files { cmd = "git log --name-only --pretty=\"\" | sed -e '/^\\s*$/d' | awk '!seen[$0]++'" }
|
fzf.files { cmd = "git log --name-only --pretty=\"\" | sed -e '/^\\s*$/d' | awk '!seen[$0]++'" }
|
||||||
end
|
end
|
||||||
-- fzf keymaps
|
|
||||||
|
|
||||||
|
-- fzf keymaps
|
||||||
vim.keymap.set({ 'n' }, 'gr', fzf.lsp_references, { desc = 'LSP: [G]o to fzf [R]eference list' })
|
vim.keymap.set({ 'n' }, 'gr', fzf.lsp_references, { desc = 'LSP: [G]o to fzf [R]eference list' })
|
||||||
vim.keymap.set({ 'n' }, '<leader>fu', fzf_grep_filename, { desc = '[F]zf: current file [U]sages' })
|
vim.keymap.set({ 'n' }, '<leader>fu', fzf_grep_filename, { desc = '[F]zf: current file [U]sages' })
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue