update
This commit is contained in:
parent
172b350fc8
commit
4482406317
3 changed files with 10 additions and 2 deletions
8
init.lua
8
init.lua
|
|
@ -136,6 +136,7 @@ require("lazy").setup({
|
|||
}
|
||||
},
|
||||
"dstein64/nvim-scrollview",
|
||||
"sindrets/diffview.nvim"
|
||||
})
|
||||
|
||||
require("image").setup({})
|
||||
|
|
@ -311,3 +312,10 @@ map('n', '<A-c>', '<Cmd>BufferClose<CR>', opts)
|
|||
map('n', '<A-p>', '<Cmd>BufferPick<CR>', opts)
|
||||
|
||||
require("mason").setup()
|
||||
|
||||
vim.api.nvim_create_autocmd('BufEnter', {
|
||||
pattern = { "*.gd" },
|
||||
callback = function()
|
||||
vim.api.nvim_buf_set_option(0, "commentstring", "# %s")
|
||||
end,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 "$@"
|
||||
|
|
|
|||
Loading…
Reference in a new issue