54 lines
1.3 KiB
Ruby
54 lines
1.3 KiB
Ruby
Vamp.configure do |config|
|
|
config.lsp.merge!(
|
|
"rust" => true,
|
|
"ruby" => true,
|
|
"python" => true,
|
|
)
|
|
|
|
# fallback tab spaces
|
|
config.tab_spaces = 4
|
|
|
|
# language specific tab spaces
|
|
config.language_tab_spaces.merge!(
|
|
"rust" => 4,
|
|
"ruby" => 2,
|
|
"makefile" => nil,
|
|
)
|
|
|
|
# 0 (default): scroll only at viewport edges
|
|
# nil: center; oversized integer margins also center
|
|
config.scroll_distance = 7
|
|
config.scroll_step_lines = 3
|
|
|
|
config.highlight_trailing_whitespace = true
|
|
|
|
#config.whitespace_scope = "leading" # or "all" (default)
|
|
#config.whitespace_characters = {
|
|
# " " => "·",
|
|
# "\t" => "→",
|
|
# "\n" => "↵",
|
|
#}
|
|
|
|
# "bar" (default), "symbols", "line_numbers", "none"
|
|
config.git_gutter = "bar"
|
|
|
|
# diff view
|
|
config.diff_context_lines = 10
|
|
config.diff_expand_lines = 15
|
|
|
|
# general bindings
|
|
config.bind "leader q", config.core.pane.close
|
|
config.bind "leader t w", config.core.word_wrap.toggle
|
|
|
|
# pane navigation
|
|
config.bind "ctrl+w h", config.core.pane.focus_left
|
|
config.bind "ctrl+w j", config.core.pane.focus_down
|
|
config.bind "ctrl+w k", config.core.pane.focus_up
|
|
config.bind "ctrl+w l", config.core.pane.focus_right
|
|
|
|
# lsp bindings
|
|
config.bind "K", config.core.lsp.hover
|
|
config.bind "leader d", config.core.lsp.definition
|
|
config.bind "leader D", config.core.lsp.diagnostics
|
|
end
|