updated neo-tree
This commit is contained in:
parent
7123bf8ae6
commit
e091cb27b7
|
|
@ -1,2 +1,38 @@
|
|||
-- "gc" to comment visual regions/lines
|
||||
return { 'numToStr/Comment.nvim', opts = {} }
|
||||
return {
|
||||
'numToStr/Comment.nvim',
|
||||
config = function()
|
||||
local prehook = require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook()
|
||||
require('Comment').setup {
|
||||
padding = true,
|
||||
sticky = true,
|
||||
ignore = '^$',
|
||||
toggler = {
|
||||
line = 'gcc',
|
||||
block = 'gbc',
|
||||
},
|
||||
opleader = {
|
||||
line = 'gc',
|
||||
block = 'gb',
|
||||
},
|
||||
extra = {
|
||||
above = 'gcO',
|
||||
below = 'gco',
|
||||
eol = 'gcA',
|
||||
},
|
||||
mappings = {
|
||||
basic = true,
|
||||
extra = true,
|
||||
extended = false,
|
||||
},
|
||||
pre_hook = prehook,
|
||||
post_hook = nil,
|
||||
}
|
||||
end,
|
||||
event = 'BufReadPre',
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
'JoosepAlviste/nvim-ts-context-commentstring',
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
return { 'JoosepAlviste/nvim-ts-context-commentstring', opts = { enable_autocmd = false } }
|
||||
|
|
@ -10,9 +10,6 @@ return {
|
|||
-- Installs the debug adapters for you
|
||||
'williamboman/mason.nvim',
|
||||
'jay-babu/mason-nvim-dap.nvim',
|
||||
|
||||
-- Add your own debuggers here
|
||||
'leoluz/nvim-dap-go',
|
||||
},
|
||||
config = function()
|
||||
local dap = require 'dap'
|
||||
|
|
@ -86,7 +83,6 @@ return {
|
|||
vim.keymap.set('n', '<F7>', dapui.toggle, { desc = 'Debug: See last session result.' })
|
||||
|
||||
dap.listeners.after.event_initialized['dapui_config'] = dapui.open
|
||||
dap.listeners.before.event_terminated['dapui_config'] = dapui.close
|
||||
dap.listeners.before.event_exited['dapui_config'] = dapui.close
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
return {
|
||||
'nvim-neo-tree/neo-tree.nvim',
|
||||
version = '*',
|
||||
version = 'v3.x',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
|
||||
|
|
@ -11,15 +11,17 @@ return {
|
|||
},
|
||||
cmd = 'Neotree',
|
||||
keys = {
|
||||
{ '\\', ':Neotree reveal<CR>', { desc = 'NeoTree reveal' } },
|
||||
{ '<leader>pv', ':Neotree reveal=true position=float<CR>', { desc = 'NeoTree reveal' } },
|
||||
},
|
||||
opts = {
|
||||
filesystem = {
|
||||
window = {
|
||||
mappings = {
|
||||
['\\'] = 'close_window',
|
||||
},
|
||||
window = {
|
||||
mappings = {
|
||||
['<c-c>'] = 'close_window',
|
||||
},
|
||||
},
|
||||
source_selector = {
|
||||
winbar = true,
|
||||
statusline = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ require('lazy').setup({
|
|||
{ 'j-hui/fidget.nvim', opts = {} }, -- Useful status updates for LSP.
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
'WhoIsSethDaniel/mason-tool-installer.nvim',
|
||||
'nvim-java/nvim-java',
|
||||
|
||||
-- `neodev` configures Lua LSP for your Neovim config, runtime and plugins
|
||||
-- used for completion, annotations and signatures of Neovim apis
|
||||
|
|
@ -162,7 +161,11 @@ require('lazy').setup({
|
|||
},
|
||||
csharp_ls = {},
|
||||
netcoredbg = {},
|
||||
clangd = {},
|
||||
clangd = {
|
||||
init_options = {
|
||||
fallbackFlags = { '--std=c++20' },
|
||||
},
|
||||
},
|
||||
--
|
||||
|
||||
lua_ls = {
|
||||
|
|
@ -237,6 +240,7 @@ require('lazy').setup({
|
|||
}
|
||||
end,
|
||||
},
|
||||
'nvim-java/nvim-java',
|
||||
|
||||
{ -- Autoformat
|
||||
'stevearc/conform.nvim',
|
||||
|
|
@ -477,7 +481,7 @@ require('lazy').setup({
|
|||
-- require 'kickstart.plugins.indent_line',
|
||||
-- require 'kickstart.plugins.lint',
|
||||
-- require 'kickstart.plugins.autopairs',
|
||||
-- require 'kickstart.plugins.neo-tree',
|
||||
require 'kickstart.plugins.neo-tree',
|
||||
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
|
||||
|
||||
{ import = 'custom.plugins' },
|
||||
|
|
|
|||
|
|
@ -24,9 +24,6 @@ vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' }
|
|||
vim.keymap.set('v', 'J', ":m '>+1<CR>gv=gv")
|
||||
vim.keymap.set('v', 'K', ":m '<-2<CR>gv=gv")
|
||||
|
||||
-- Open file tree
|
||||
vim.keymap.set('n', '<leader>pv', vim.cmd.Ex)
|
||||
|
||||
-- Keep cursor in place when appending next line
|
||||
vim.keymap.set('n', 'J', 'mzJ`z')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue