This commit is contained in:
parent
0140dbab6a
commit
5f9cc116df
@ -22,6 +22,7 @@ vim.{{ t }}["{{ k }}"]{% if v is defined %}={% if v is integer or v is boolean %
|
||||
-- NeoVIM options
|
||||
{{- cfg("options", neovim.config.options) }}
|
||||
|
||||
-- NeoVIM functions
|
||||
function RemoveComments()
|
||||
vim.cmd.normal("g/^#/d")
|
||||
vim.cmd.normal("g/^$/d")
|
||||
@ -34,14 +35,15 @@ end
|
||||
vim.api.nvim_command("command! Reformat call luaeval('Reformat()')")
|
||||
vim.api.nvim_command("command! RemoveComments call luaeval('RemoveComments()')")
|
||||
|
||||
-- NeoVIM keymaps
|
||||
vim.keymap.set("n", "<F9>", ":!%:p")
|
||||
vim.keymap.set("n", "<C-s>", ":FzfLua<CR>")
|
||||
|
||||
vim.keymap.set("v", "<C-a>", "g<C-a>")
|
||||
vim.keymap.set("v", "<C-x>", "g<C-x>")
|
||||
vim.keymap.set("v", "g<C-a>", "<C-a>")
|
||||
vim.keymap.set("v", "g<C-x>", "<C-x>")
|
||||
|
||||
-- NeoVIM functions
|
||||
{% if "nvim-tree" in neovim.plugins.keys() -%}
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
@ -62,4 +64,9 @@ require("nvim-tree").setup({
|
||||
dotfiles = true,
|
||||
},
|
||||
})
|
||||
vim.keymap.set("n", "<C-b>", ":NvimTreeToggle<CR>")
|
||||
{% endif -%}
|
||||
|
||||
{% if "fzf-lua" in neovim.plugins.keys() -%}
|
||||
vim.keymap.set("n", "<C-s>", ":FzfLua<CR>")
|
||||
{% endif -%}
|
||||
|
Loading…
Reference in New Issue
Block a user