mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-17 12:27:22 +00:00
Add new nvim packages and update config
This commit is contained in:
parent
e8e8b4ba3d
commit
4cd2592f0b
6 changed files with 312 additions and 119 deletions
|
|
@ -2,8 +2,8 @@ function fish_user_key_bindings
|
|||
bind --mode insert jj "if commandline -P; commandline -f cancel; else; set fish_bind_mode default; commandline -f backward-char repaint-mode; end"
|
||||
bind --mode insert ,a 'ssh_add; commandline -f repaint'
|
||||
bind --mode insert ,j 'joplin; commandline -f repaint'
|
||||
bind --mode insert ,p 'nvim +FZF; commandline -f repaint'
|
||||
bind --mode insert ,w 'nvim +VimwikiIndex; commandline -f repaint'
|
||||
bind --mode insert ,p 'nvim +"Telescope git_files"; commandline -f repaint'
|
||||
bind --mode insert ,f 'nvim +"Telescope find_files"; commandline -f repaint'
|
||||
bind --mode insert ,n 'n; commandline -f repaint'
|
||||
bind --mode insert ,s 'sysz; commandline -f repaint'
|
||||
end
|
||||
|
|
|
|||
60
.config/nvim/init.lua
Normal file
60
.config/nvim/init.lua
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
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
|
||||
}
|
||||
})
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
||||
let &packpath = &runtimepath
|
||||
source ~/.vimrc
|
||||
|
||||
" Mappings for terminal mode
|
||||
tnoremap <Esc> <C-\><C-n>
|
||||
Loading…
Add table
Add a link
Reference in a new issue