Small vim config changes
This commit is contained in:
parent
458a2dd1d6
commit
f60dd72912
@ -140,8 +140,8 @@ alias zf='z $(flirt)'
|
||||
# ~/.bash_aliases, instead of adding them here directly.
|
||||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||
if [ -z "$EDITOR" ]; then
|
||||
export EDITOR=kak
|
||||
# export EDITOR='nvim'
|
||||
# export EDITOR=kak
|
||||
export EDITOR='nvim'
|
||||
fi
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
# lua
|
||||
[language.lua.grammar.source.git]
|
||||
[lua.grammar.source.git]
|
||||
url = "https://github.com/tree-sitter-grammars/tree-sitter-lua"
|
||||
pin = "88e446476a1e97a8724dff7a23e2d709855077f2"
|
||||
|
||||
[language.lua.grammar]
|
||||
[lua.grammar]
|
||||
path = "src"
|
||||
compile = "cc"
|
||||
compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."]
|
||||
@ -44,11 +44,11 @@ path = "runtime/queries/lua"
|
||||
# path = "runtime/queries/clojure"
|
||||
|
||||
#ocaml
|
||||
[language.ocaml.grammar.source.git]
|
||||
[ocaml.grammar.source.git]
|
||||
url = "https://github.com/tree-sitter/tree-sitter-ocaml"
|
||||
pin = "ef6ed4a773a260545f0b03c43d2ca78235e9a488"
|
||||
|
||||
[language.ocaml.grammar]
|
||||
[ocaml.grammar]
|
||||
path = "grammars/ocaml/src"
|
||||
compile = "cc"
|
||||
compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."]
|
||||
@ -65,11 +65,11 @@ pin = "6bedca80646ce7350fb73029adf802ce7d9e241d"
|
||||
path = "runtime/queries/ocaml"
|
||||
|
||||
# typst
|
||||
[language.typst.grammar.source.git]
|
||||
[typst.grammar.source.git]
|
||||
url = "https://github.com/uben0/tree-sitter-typst"
|
||||
pin = "46cf4ded12ee974a70bf8457263b67ad7ee0379d"
|
||||
|
||||
[language.typst.grammar]
|
||||
[typst.grammar]
|
||||
path = "src"
|
||||
compile = "cc"
|
||||
compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."]
|
||||
@ -86,11 +86,11 @@ pin = "46cf4ded12ee974a70bf8457263b67ad7ee0379d"
|
||||
path = "queries/typst"
|
||||
|
||||
# swift
|
||||
[language.swift.grammar.source.git]
|
||||
[swift.grammar.source.git]
|
||||
url = "https://github.com/alex-pinkus/tree-sitter-swift"
|
||||
pin = "57c1c6d6ffa1c44b330182d41717e6fe37430704"
|
||||
|
||||
[language.swift.grammar]
|
||||
[swift.grammar]
|
||||
path = "src"
|
||||
compile = "cc"
|
||||
compile_args = ["-c", "-fpic", "../scanner.c", "-I", ".."]
|
||||
|
||||
@ -112,39 +112,6 @@ add-highlighter global/ wrap -word -indent
|
||||
# }
|
||||
# }
|
||||
|
||||
# hook global -group autofmt BufSetOption filetype=(javascript) %{
|
||||
# set-option buffer formatcmd 'prettier --tab-width 4 --parser typescript'
|
||||
#
|
||||
# hook -group autofmt buffer BufOpenFile .* %{
|
||||
# format
|
||||
# }
|
||||
#
|
||||
# hook -group autofmt buffer BufWritePre .* %{
|
||||
# format
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# hook global -group autofmt BufSetOption filetype=(go) %{
|
||||
# set-option buffer formatcmd 'gofmt'
|
||||
#
|
||||
# hook -group autofmt buffer BufOpenFile .* %{
|
||||
# format
|
||||
# }
|
||||
#
|
||||
# hook -group autofmt buffer BufWritePre .* %{
|
||||
# format
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# define-command disable-autofmt -docstring 'disable autoformatting of buffer' %{
|
||||
# remove-hooks global autofmt
|
||||
# }
|
||||
#
|
||||
# enable-autofmt
|
||||
#
|
||||
#
|
||||
#
|
||||
## Indentation ##
|
||||
set global tabstop 4
|
||||
set global indentwidth 4
|
||||
@ -453,7 +420,7 @@ define-command -docstring 'paste from clipboard' xpaste %{
|
||||
|
||||
declare-user-mode config
|
||||
map -docstring 'enter config mode' global user e ':enter-user-mode config<ret>'
|
||||
map -docstring 'edit kakoune config' global config k ':cd ~/.config/kak/<ret>:e ./kakrc<ret>'
|
||||
map -docstring 'edit kakoune config' global config k ':e ~/.config/kak/kakrc<ret>'
|
||||
map -docstring 'edit tmux config' global config t ':e ~/.tmux.conf<ret>'
|
||||
map -docstring 'edit bash config' global config b ':e ~/.bashrc<ret>'
|
||||
map -docstring 'edit scripts folder' global config s ':cd ~/.scripts<ret>:fzf-edit<ret>'
|
||||
|
||||
@ -5,7 +5,7 @@ end
|
||||
|
||||
setnx('<leader>ff', Snacks.picker.files, 'Find files')
|
||||
setnx('<leader>f/', Snacks.picker.grep_word, 'Search current word')
|
||||
setnx('<leader>f?', Snacks.picker.grep, 'Search in files')
|
||||
setnx('<leader>fg', Snacks.picker.grep, 'Search in files')
|
||||
setnx('<leader>fr', Snacks.picker.recent, 'Find recent files')
|
||||
setnx('<leader>b', Snacks.picker.buffers, 'List buffers')
|
||||
setnx('<leader>h', Snacks.picker.help, 'Search help')
|
||||
@ -42,7 +42,7 @@ setnx('`', '\'', 'Goto mark without column')
|
||||
|
||||
setnx('<leader>x', '<CMD>bd!<CR>', 'Close Current Buffer')
|
||||
|
||||
setnx('grR', Snacks.picker.lsp_references, 'Search lsp references')
|
||||
setnx('grr', Snacks.picker.lsp_references, 'Search lsp references')
|
||||
-- setnx('grI', tele.lsp_incoming_calls, 'Find incoming function calls')
|
||||
-- setnx('grO', tele.lsp_outgoing_calls, 'Find outgoing function calls')
|
||||
setnx('grd', Snacks.picker.diagnostics, 'Show LSP diagnostics')
|
||||
|
||||
@ -71,6 +71,9 @@ return {
|
||||
},
|
||||
-- (Default) Only show the documentation popup when manually triggered
|
||||
completion = {
|
||||
trigger = {
|
||||
show_on_insert = true
|
||||
},
|
||||
documentation = { auto_show = false },
|
||||
list = {
|
||||
selection = {
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
[core]
|
||||
editor = kak
|
||||
editor = nvim
|
||||
[init]
|
||||
defaultBranch = master
|
||||
[sendemail]
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
rg --uu --color=always --line-number --no-heading --smart-case -H "${*:-}" | tr -d '\r' |
|
||||
rg -uu --color=always --line-number --no-heading --smart-case -H "${*:-}" | tr -d '\r' |
|
||||
fzf-tmux --cycle -p 80%,90% --ansi \
|
||||
--color "hl:-1:underline,hl+:-1:underline:reverse" \
|
||||
--delimiter : \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user