neovim 0.12 update
This commit is contained in:
parent
d776924ffc
commit
2e6e11b86d
8 changed files with 83 additions and 72 deletions
|
|
@ -74,10 +74,13 @@ vim.keymap.set('n', '<leader>sw', Snacks.picker.grep, { desc = 'grep' })
|
|||
vim.keymap.set('n', '<leader>sb', Snacks.picker.buffers, { desc = 'buffers' })
|
||||
vim.keymap.set('n', '<leader>sd', Snacks.picker.diagnostics_buffer, { desc = 'diagnostics' })
|
||||
vim.keymap.set('n', '<leader>sD', Snacks.picker.diagnostics, { desc = 'workspace diagnostics' })
|
||||
vim.keymap.set('n', '<leader>sh', Snacks.picker.help, { desc = 'help' })
|
||||
vim.keymap.set('n', '<leader>sg', Snacks.picker.git_log_file, { desc = 'git log of current file' })
|
||||
vim.keymap.set('n', '<leader>sG', Snacks.picker.git_log, { desc = 'git log' })
|
||||
|
||||
vim.keymap.set('n', '<leader>st', function()
|
||||
Snacks.picker.todo_comments()
|
||||
end, { desc = 'search todos' })
|
||||
vim.keymap.set('n', '<leader>sh', Snacks.picker.help, { desc = 'help' })
|
||||
|
||||
vim.keymap.set('n', '<leader>/', function()
|
||||
Snacks.picker.lines({ layout = 'select' })
|
||||
|
|
|
|||
|
|
@ -47,8 +47,7 @@ vim.o.winborder = 'rounded'
|
|||
vim.opt.hlsearch = false
|
||||
vim.opt.wrap = false
|
||||
|
||||
vim.o.swapfile = false
|
||||
vim.o.undofile = false
|
||||
vim.opt.swapfile = false
|
||||
|
||||
vim.o.sessionoptions='blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions'
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,10 @@ return {
|
|||
{
|
||||
'L3MON4D3/LuaSnip',
|
||||
version = 'v2.*',
|
||||
build = 'make install_jsregexp'
|
||||
build = 'make install_jsregexp',
|
||||
config = function ()
|
||||
require('luasnip.loaders.from_snipmate').lazy_load({ paths = '~/.config/nvim/snippets' })
|
||||
end
|
||||
},
|
||||
'folke/lazydev.nvim',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,43 +1,34 @@
|
|||
return {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
build = ':TSUpdate',
|
||||
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
'bash',
|
||||
'c',
|
||||
'cpp',
|
||||
'diff',
|
||||
'html',
|
||||
'css',
|
||||
'lua',
|
||||
'luadoc',
|
||||
'markdown',
|
||||
'markdown_inline',
|
||||
'query',
|
||||
'vim',
|
||||
'vimdoc',
|
||||
'rust',
|
||||
'python',
|
||||
'htmldjango',
|
||||
'r',
|
||||
'dart',
|
||||
'javascript',
|
||||
'typescript',
|
||||
'tsx',
|
||||
'prisma',
|
||||
'regex',
|
||||
'kotlin',
|
||||
'java',
|
||||
},
|
||||
auto_install = false,
|
||||
highlight = { enable = true, },
|
||||
indent = { enable = true },
|
||||
},
|
||||
-- There are additional nvim-treesitter modules that you can use to interact
|
||||
-- with nvim-treesitter. You should go explore a few and see what interests you:
|
||||
--
|
||||
-- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
|
||||
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
|
||||
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
build = ':TSUpdate',
|
||||
config = function()
|
||||
require('nvim-treesitter').install({
|
||||
'bash',
|
||||
'c',
|
||||
'cpp',
|
||||
'diff',
|
||||
'html',
|
||||
'css',
|
||||
'javascript',
|
||||
'typescript',
|
||||
'tsx',
|
||||
'lua',
|
||||
'luadoc',
|
||||
'markdown',
|
||||
'markdown_inline',
|
||||
'query',
|
||||
'vim',
|
||||
'vimdoc',
|
||||
'rust',
|
||||
'python',
|
||||
'htmldjango',
|
||||
'r',
|
||||
'dart',
|
||||
'prisma',
|
||||
'regex',
|
||||
'kotlin',
|
||||
'java',
|
||||
'http',
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,10 @@
|
|||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = { 'json' },
|
||||
callback = function()
|
||||
vim.api.nvim_set_option_value('formatprg', 'jq', { scope = 'local' })
|
||||
end,
|
||||
})
|
||||
|
||||
vim.g.rest_nvim = {
|
||||
ui = {
|
||||
keybinds = {
|
||||
|
|
@ -7,12 +14,12 @@ vim.g.rest_nvim = {
|
|||
},
|
||||
}
|
||||
return {
|
||||
"rest-nvim/rest.nvim",
|
||||
'rest-nvim/rest.nvim',
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
opts = function (_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
table.insert(opts.ensure_installed, "http")
|
||||
table.insert(opts.ensure_installed, 'http')
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,24 +1,25 @@
|
|||
return {
|
||||
{
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
opts = {
|
||||
options = {
|
||||
globalstatus = true
|
||||
}
|
||||
}
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
opts = {
|
||||
options = {
|
||||
globalstatus = true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
'catppuccin/nvim',
|
||||
name = 'catppuccin',
|
||||
priority = 1000,
|
||||
opts = {
|
||||
flavour = 'mocha',
|
||||
no_italic = true,
|
||||
},
|
||||
config = function()
|
||||
vim.cmd('colorscheme catppuccin')
|
||||
end
|
||||
}
|
||||
'catppuccin/nvim',
|
||||
name = 'catppuccin',
|
||||
priority = 1000,
|
||||
opts = {
|
||||
flavour = 'mocha',
|
||||
no_italic = true,
|
||||
},
|
||||
config = function()
|
||||
vim.cmd('colorscheme catppuccin')
|
||||
end
|
||||
},
|
||||
'HiPhish/rainbow-delimiters.nvim',
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue