diff --git a/init.lua b/init.lua index 38d9b99..2c6195b 100644 --- a/init.lua +++ b/init.lua @@ -136,6 +136,7 @@ require("lazy").setup({ } }, "dstein64/nvim-scrollview", + "sindrets/diffview.nvim" }) require("image").setup({}) @@ -311,3 +312,10 @@ map('n', '', 'BufferClose', opts) map('n', '', 'BufferPick', opts) require("mason").setup() + +vim.api.nvim_create_autocmd('BufEnter', { + pattern = { "*.gd" }, + callback = function() + vim.api.nvim_buf_set_option(0, "commentstring", "# %s") + end, +}) diff --git a/kitty/kitty.conf b/kitty/kitty.conf index a16641e..0498899 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -3,10 +3,11 @@ tab_bar_style powerline font_size 12.0 tab_bar_min_tabs 1 tab_powerline_style slanted -map ctrl+g kitten hints --type=linenum --linenum-action=background sh -c "nvim_remote +{line} $(pwd)/{path}" +map ctrl+g kitten hints --type=linenum --linenum-action=background sh -c "nvim_remote +{line} {path}" tab_bar_edge top include ./theme.conf map f1 new_tab +map f2 new_tab_with_cwd map ctrl+shift+w no_op map alt+>, no_op map alt+< no_op diff --git a/nvim_remote b/nvim_remote index b3404a1..a4bf814 100755 --- a/nvim_remote +++ b/nvim_remote @@ -9,7 +9,6 @@ repo_path=$(git rev-parse --show-toplevel 2>/dev/null) cd $repo_path if [ -n "$repo_path" ]; then servername=/tmp/nvr$(echo $repo_path | tr "/" "_") - echo $servername nvr -s --servername $servername "$@" else nvim "$@"