This commit is contained in:
Jaroslaw Konik 2024-05-11 22:30:44 +02:00
parent 172b350fc8
commit 4482406317
3 changed files with 10 additions and 2 deletions

View file

@ -136,6 +136,7 @@ require("lazy").setup({
} }
}, },
"dstein64/nvim-scrollview", "dstein64/nvim-scrollview",
"sindrets/diffview.nvim"
}) })
require("image").setup({}) require("image").setup({})
@ -311,3 +312,10 @@ map('n', '<A-c>', '<Cmd>BufferClose<CR>', opts)
map('n', '<A-p>', '<Cmd>BufferPick<CR>', opts) map('n', '<A-p>', '<Cmd>BufferPick<CR>', opts)
require("mason").setup() require("mason").setup()
vim.api.nvim_create_autocmd('BufEnter', {
pattern = { "*.gd" },
callback = function()
vim.api.nvim_buf_set_option(0, "commentstring", "# %s")
end,
})

View file

@ -3,10 +3,11 @@ tab_bar_style powerline
font_size 12.0 font_size 12.0
tab_bar_min_tabs 1 tab_bar_min_tabs 1
tab_powerline_style slanted 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 tab_bar_edge top
include ./theme.conf include ./theme.conf
map f1 new_tab map f1 new_tab
map f2 new_tab_with_cwd
map ctrl+shift+w no_op map ctrl+shift+w no_op
map alt+>, no_op map alt+>, no_op
map alt+< no_op map alt+< no_op

View file

@ -9,7 +9,6 @@ repo_path=$(git rev-parse --show-toplevel 2>/dev/null)
cd $repo_path cd $repo_path
if [ -n "$repo_path" ]; then if [ -n "$repo_path" ]; then
servername=/tmp/nvr$(echo $repo_path | tr "/" "_") servername=/tmp/nvr$(echo $repo_path | tr "/" "_")
echo $servername
nvr -s --servername $servername "$@" nvr -s --servername $servername "$@"
else else
nvim "$@" nvim "$@"