X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/cd4c8b13ab7c0c9a455efdc7bd262aa1a6e715a7..66eb9e7655975fa54c376b07b550661b0c2790c9:/config/nvim/init.lua diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 7243f4a..fd48ab7 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -75,6 +75,11 @@ vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, { callback = function () vim.opt.filetype = 'snes' end }) +vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, { + pattern = {'.plan'}, + callback = function () vim.opt.filetype = 'markdown' end +}) + ------------------------------------------------------------------------------- -- Local Overrides ------------------------------------------------------------------------------- @@ -84,7 +89,7 @@ pcall(require, 'init_local') -- Plugin Specific Behavior ------------------------------------------------------------------------------- -- FZF -vim.keymap.set("n", "", +vim.keymap.set('n', '', "lua require('fzf-lua').files({ fzf_opts = {} })", { silent = true }) -- Toggle Autosave @@ -103,6 +108,9 @@ vim.g.coq_settings = { } } +-- Oil +vim.keymap.set("n", "-", "Oil", { desc = "Open parent directory" }) + -- Plugins require('plugins') require('treesitter_config')