From fba0d309c73d662f057cb5ca44e3fe35951b32ab Mon Sep 17 00:00:00 2001 From: skystar Date: Fri, 7 Nov 2025 09:19:10 -0800 Subject: [PATCH] Add fugative --- init.lua | 23 ++++++++++++++++------- lua/custom/plugins/fugative.lua | 5 +++++ 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 lua/custom/plugins/fugative.lua diff --git a/init.lua b/init.lua index d3db0fce..89470d88 100644 --- a/init.lua +++ b/init.lua @@ -91,7 +91,7 @@ vim.g.mapleader = ',' vim.g.maplocalleader = ' ' -- Set to true if you have a Nerd Font installed and selected in the terminal -vim.g.have_nerd_font = false +vim.g.have_nerd_font = true -- [[ Setting options ]] -- See `:help vim.o` @@ -161,6 +161,10 @@ vim.o.cursorline = true -- Minimal number of screen lines to keep above and below the cursor. vim.o.scrolloff = 10 +vim.opt.tabstop = 2 +vim.opt.shiftwidth = 2 +vim.opt.expandtab = true + -- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`), -- instead raise a dialog asking if you wish to save the current file(s) -- See `:help 'confirm'` @@ -815,6 +819,7 @@ require('lazy').setup({ -- You can use 'stop_after_first' to run the first available formatter from the list javascript = { 'prettierd', 'prettier', stop_after_first = true }, typescript = { 'prettierd', 'prettier', stop_after_first = true }, + markdown = { 'prettierd', 'prettier', stop_after_first = true }, }, }, }, @@ -995,6 +1000,7 @@ require('lazy').setup({ -- If you are experiencing weird indenting issues, add the language to -- the list of additional_vim_regex_highlighting and disabled languages for indent. additional_vim_regex_highlighting = { 'ruby' }, + disable = { 'python' }, }, indent = { enable = true, disable = { 'ruby' } }, }, @@ -1015,14 +1021,15 @@ require('lazy').setup({ -- Here are some example plugins that I've included in the Kickstart repository. -- Uncomment any of the lines below to enable them (you will need to restart nvim). -- - -- require 'kickstart.plugins.debug', - -- require 'kickstart.plugins.indent_line', - -- require 'kickstart.plugins.lint', - -- require 'kickstart.plugins.autopairs', - -- require 'kickstart.plugins.neo-tree', - -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps + require 'kickstart.plugins.debug', + require 'kickstart.plugins.indent_line', + require 'kickstart.plugins.lint', + require 'kickstart.plugins.autopairs', + require 'kickstart.plugins.neo-tree', + require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps require 'custom.plugins.oil', require 'custom.plugins.avante', + require 'custom.plugins.fugative', -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. @@ -1067,3 +1074,5 @@ vim.keymap.set('i', 'jj', '') vim.keymap.set('n', 'w', ':w') vim.keymap.set('n', 'n', ':enew') vim.keymap.set('n', 'pv', ':Oil') +vim.keymap.set('n', 'nn', ':e ~/notes') +vim.keymap.set('n', 'gs', ':Git') diff --git a/lua/custom/plugins/fugative.lua b/lua/custom/plugins/fugative.lua new file mode 100644 index 00000000..831c8f6d --- /dev/null +++ b/lua/custom/plugins/fugative.lua @@ -0,0 +1,5 @@ +return { + { + 'tpope/vim-fugitive', + }, +}