mirror of https://github.com/mitchell/dotfiles.git
61 lines
1.7 KiB
Lua
61 lines
1.7 KiB
Lua
|
vim.cmd("set runtimepath^=~/.vim runtimepath+=~/.vim/after")
|
||
|
vim.cmd("let &packpath = &runtimepath")
|
||
|
vim.cmd("source ~/.vimrc")
|
||
|
vim.keymap.set("n", "<Esc>", "<C-\\><C-n>")
|
||
|
|
||
|
require('symbols-outline').setup()
|
||
|
require('leap').add_default_mappings()
|
||
|
|
||
|
require('noice').setup({
|
||
|
lsp = {
|
||
|
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
||
|
override = {
|
||
|
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
||
|
["vim.lsp.util.stylize_markdown"] = true,
|
||
|
["cmp.entry.get_documentation"] = true,
|
||
|
},
|
||
|
},
|
||
|
})
|
||
|
|
||
|
require('nvim-treesitter.configs').setup({
|
||
|
-- A list of parser names, or "all" (the four listed parsers should always be installed)
|
||
|
ensure_installed = {
|
||
|
"c",
|
||
|
"lua",
|
||
|
"vim",
|
||
|
"help",
|
||
|
"fish",
|
||
|
"typescript",
|
||
|
"javascript",
|
||
|
"go",
|
||
|
"elixir",
|
||
|
},
|
||
|
|
||
|
-- Automatically install missing parsers when entering buffer
|
||
|
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
||
|
auto_install = true,
|
||
|
|
||
|
highlight = {
|
||
|
enable = true,
|
||
|
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||
|
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||
|
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||
|
-- Instead of true it can also be a list of languages
|
||
|
additional_vim_regex_highlighting = false,
|
||
|
},
|
||
|
|
||
|
incremental_selection = {
|
||
|
enable = true,
|
||
|
keymaps = {
|
||
|
init_selection = "gnn", -- set to `false` to disable one of the mappings
|
||
|
node_incremental = "grn",
|
||
|
scope_incremental = "grc",
|
||
|
node_decremental = "grm",
|
||
|
},
|
||
|
},
|
||
|
|
||
|
indent = {
|
||
|
enable = true
|
||
|
}
|
||
|
})
|