X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/cd4c8b13ab7c0c9a455efdc7bd262aa1a6e715a7..a642d2fdb16a098066a6b61ca9c11620cbefb3e0:/config/nvim/init.lua diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 7243f4a..e1e61f6 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -5,11 +5,12 @@ vim.opt.number = true -- Show number column vim.opt.wrap = false -- Don't wrap text vim.opt.list = true -- Display tabs and trailing space +vim.opt.cursorline = true -- Highlight cursor line vim.opt.colorcolumn='80,150' -- Show color columns -- Color vim.opt.termguicolors = true -vim.cmd.color('rbdr') +vim.cmd.color('tranquil') -- Tab Style (Always override with editorconfig) vim.opt.tabstop = 2 -- 2 Spaces per tab @@ -75,6 +76,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 +90,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 +109,12 @@ vim.g.coq_settings = { } } +-- Oil +vim.keymap.set("n", "-", "Oil", { desc = "Open parent directory" }) + +-- UndoTree +vim.keymap.set('n', 'U', vim.cmd.UndotreeToggle) + -- Plugins require('plugins') require('treesitter_config')