c sharp
This commit is contained in:
parent
7a26e6c951
commit
1f8a7a4eda
12
README.md
12
README.md
|
@ -28,8 +28,8 @@ External Requirements:
|
||||||
- A [Nerd Font](https://www.nerdfonts.com/): optional, provides various icons
|
- A [Nerd Font](https://www.nerdfonts.com/): optional, provides various icons
|
||||||
- if you have it set `vim.g.have_nerd_font` in `init.lua` to true
|
- if you have it set `vim.g.have_nerd_font` in `init.lua` to true
|
||||||
- Language Setup:
|
- Language Setup:
|
||||||
- If want to write Typescript, you need `npm`
|
- If you want to write Typescript, you need `npm`
|
||||||
- If want to write Golang, you will need `go`
|
- If you want to write Golang, you will need `go`
|
||||||
- etc.
|
- etc.
|
||||||
|
|
||||||
> **NOTE**
|
> **NOTE**
|
||||||
|
@ -59,6 +59,10 @@ fork to your machine using one of the commands below, depending on your OS.
|
||||||
> Your fork's url will be something like this:
|
> Your fork's url will be something like this:
|
||||||
> `https://github.com/<your_github_username>/kickstart.nvim.git`
|
> `https://github.com/<your_github_username>/kickstart.nvim.git`
|
||||||
|
|
||||||
|
You likely want to remove `lazy-lock.json` from your fork's `.gitignore` file
|
||||||
|
too - it's ignored in the kickstart repo to make maintenance easier, but it's
|
||||||
|
[recommmended to track it in version control](https://lazy.folke.io/usage/lockfile).
|
||||||
|
|
||||||
#### Clone kickstart.nvim
|
#### Clone kickstart.nvim
|
||||||
> **NOTE**
|
> **NOTE**
|
||||||
> If following the recommended step above (i.e., forking the repo), replace
|
> If following the recommended step above (i.e., forking the repo), replace
|
||||||
|
@ -77,13 +81,13 @@ git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HO
|
||||||
If you're using `cmd.exe`:
|
If you're using `cmd.exe`:
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/nvim-lua/kickstart.nvim.git %localappdata%\nvim\
|
git clone https://github.com/nvim-lua/kickstart.nvim.git "%localappdata%\nvim"
|
||||||
```
|
```
|
||||||
|
|
||||||
If you're using `powershell.exe`
|
If you're using `powershell.exe`
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/nvim-lua/kickstart.nvim.git $env:LOCALAPPDATA\nvim\
|
git clone https://github.com/nvim-lua/kickstart.nvim.git "${env:LOCALAPPDATA}\nvim"
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
"return" @keyword.return
|
35
init.lua
35
init.lua
|
@ -92,7 +92,9 @@ I hope you enjoy your Neovim journey,
|
||||||
P.S. You can delete this when you're done too. It's your config now! :)
|
P.S. You can delete this when you're done too. It's your config now! :)
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
|
-- vim.api.nvim_set_hl(0, 'ReturnKeyword', { fg = '#FF0000', bold = true })
|
||||||
-- Your existing Neovim configurations..
|
-- Your existing Neovim configurations..
|
||||||
|
vim.lsp.inlay_hint.enable()
|
||||||
vim.opt.tabstop = 4
|
vim.opt.tabstop = 4
|
||||||
vim.opt.shiftwidth = 4
|
vim.opt.shiftwidth = 4
|
||||||
vim.opt.softtabstop = 4
|
vim.opt.softtabstop = 4
|
||||||
|
@ -767,7 +769,7 @@ require('lazy').setup({
|
||||||
dependencies = {
|
dependencies = {
|
||||||
-- `friendly-snippets` contains a variety of premade snippets.
|
-- `friendly-snippets` contains a variety of premade snippets.
|
||||||
-- See the README about individual language/framework/plugin snippets:
|
-- See the README about individual language/framework/plugin snippets:
|
||||||
-- https://github.com/rafamadriz/friendly-snippets
|
-- https://github.com/rafamadriz/friendly-snippetjs
|
||||||
-- {
|
-- {
|
||||||
-- 'rafamadriz/friendly-snippets',
|
-- 'rafamadriz/friendly-snippets',
|
||||||
-- config = function()
|
-- config = function()
|
||||||
|
@ -875,9 +877,9 @@ require('lazy').setup({
|
||||||
-- Load the colorscheme here.
|
-- Load the colorscheme here.
|
||||||
-- Like many other themes, this one has different styles, and you could load
|
-- Like many other themes, this one has different styles, and you could load
|
||||||
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
||||||
-- vim.cmd.colorscheme 'tokyonight-night'
|
-- vim.cmd.colorscheme 'kanagawa'
|
||||||
vim.cmd.colorscheme 'kanagawa'
|
-- vim.cmd.colorscheme 'obscure'
|
||||||
-- vim.cmd.colorscheme 'tokyonight'
|
vim.cmd.colorscheme 'rose-pine'
|
||||||
-- You can configure highlights by doing something like:
|
-- You can configure highlights by doing something like:
|
||||||
vim.cmd.hi 'Comment gui=none'
|
vim.cmd.hi 'Comment gui=none'
|
||||||
end,
|
end,
|
||||||
|
@ -927,7 +929,23 @@ require('lazy').setup({
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
|
ensure_installed = {
|
||||||
|
'bash',
|
||||||
|
'c',
|
||||||
|
'diff',
|
||||||
|
'html',
|
||||||
|
'lua',
|
||||||
|
'luadoc',
|
||||||
|
'markdown',
|
||||||
|
'markdown_inline',
|
||||||
|
'query',
|
||||||
|
'vim',
|
||||||
|
'vimdoc',
|
||||||
|
'c_sharp',
|
||||||
|
'python',
|
||||||
|
'typescript',
|
||||||
|
'javascript',
|
||||||
|
},
|
||||||
-- Autoinstall languages that are not installed
|
-- Autoinstall languages that are not installed
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
highlight = {
|
highlight = {
|
||||||
|
@ -938,10 +956,13 @@ require('lazy').setup({
|
||||||
additional_vim_regex_highlighting = { 'ruby' },
|
additional_vim_regex_highlighting = { 'ruby' },
|
||||||
},
|
},
|
||||||
indent = { enable = true, disable = { 'ruby' } },
|
indent = { enable = true, disable = { 'ruby' } },
|
||||||
|
-- custom_captures = {
|
||||||
|
-- -- Highlight the `return` keyword with the `ReturnKeyword` group
|
||||||
|
-- ['@keyword.return'] = 'ReturnKeyword',
|
||||||
|
-- },
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
||||||
|
|
||||||
-- Prefer git instead of curl in order to improve connectivity in some environments
|
-- Prefer git instead of curl in order to improve connectivity in some environments
|
||||||
require('nvim-treesitter.install').prefer_git = true
|
require('nvim-treesitter.install').prefer_git = true
|
||||||
---@diagnostic disable-next-line: missing-fields
|
---@diagnostic disable-next-line: missing-fields
|
||||||
|
@ -964,7 +985,6 @@ require('lazy').setup({
|
||||||
--
|
--
|
||||||
-- Here are some example plugins that I've included in the Kickstart repository.
|
-- Here are some example plugins that I've included in the Kickstart repository.
|
||||||
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
|
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
|
||||||
--
|
|
||||||
require 'kickstart.plugins.debug',
|
require 'kickstart.plugins.debug',
|
||||||
require 'kickstart.plugins.indent_line',
|
require 'kickstart.plugins.indent_line',
|
||||||
require 'kickstart.plugins.lint',
|
require 'kickstart.plugins.lint',
|
||||||
|
@ -999,6 +1019,5 @@ require('lazy').setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
return {
|
return { 'water-sucks/darkrose.nvim' }
|
||||||
'water-sucks/darkrose.nvim',
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,6 +1 @@
|
||||||
return {
|
return { 'nanotech/jellybeans.vim' }
|
||||||
{
|
|
||||||
'metalelf0/jellybeans-nvim',
|
|
||||||
dependencies = { 'rktjmp/lush.nvim' },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,12 +2,17 @@ return {
|
||||||
'rebelot/kanagawa.nvim',
|
'rebelot/kanagawa.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
require('kanagawa').setup {
|
require('kanagawa').setup {
|
||||||
|
statementStyle = { italic = false },
|
||||||
|
functionStyle = { italic = false },
|
||||||
|
typeStyle = { italic = false },
|
||||||
colors = {
|
colors = {
|
||||||
palette = {
|
palette = {
|
||||||
-- change all usages of these colors
|
-- change all usages of these colors
|
||||||
sumiInk0 = '#0D0D0D',
|
sumiInk0 = '#0D0D0D',
|
||||||
fujiWhite = '#FFFFFF',
|
fujiWhite = '#FFFFFF',
|
||||||
},
|
},
|
||||||
|
keywordStyle = { italic = false },
|
||||||
|
commentStyle = { italic = false },
|
||||||
theme = {
|
theme = {
|
||||||
-- change specific usages for a certain theme, or for all of them
|
-- change specific usages for a certain theme, or for all of them
|
||||||
wave = {
|
wave = {
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
return { 'sainnhe/gruvbox-material' }
|
|
@ -1 +1,3 @@
|
||||||
return { 'marko-cerovac/material.nvim' }
|
return {
|
||||||
|
'marko-cerovac/material.nvim',
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
return {
|
return {
|
||||||
'xero/miasma.nvim',
|
'xero/miasma.nvim',
|
||||||
lazy = false,
|
-- lazy = false,
|
||||||
priority = 1000,
|
-- priority = 1000,
|
||||||
|
-- config = function()
|
||||||
|
-- vim.cmd 'colorscheme miasma'
|
||||||
|
-- end,
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
return { 'EdenEast/nightfox.nvim' }
|
|
@ -0,0 +1 @@
|
||||||
|
return { 'DaikyXendo/nvim-material-icon' }
|
|
@ -0,0 +1 @@
|
||||||
|
return { 'killitar/obscure.nvim' }
|
|
@ -0,0 +1,28 @@
|
||||||
|
return {
|
||||||
|
'seblj/roslyn.nvim',
|
||||||
|
ft = 'cs',
|
||||||
|
opts = {
|
||||||
|
-- your configuration comes here; leave empty for default settings
|
||||||
|
config = {
|
||||||
|
settings = {
|
||||||
|
['csharp|inlay_hints'] = {
|
||||||
|
csharp_enable_inlay_hints_for_implicit_object_creation = true,
|
||||||
|
csharp_enable_inlay_hints_for_implicit_variable_types = true,
|
||||||
|
csharp_enable_inlay_hints_for_lambda_parameter_types = true,
|
||||||
|
csharp_enable_inlay_hints_for_types = true,
|
||||||
|
dotnet_enable_inlay_hints_for_indexer_parameters = true,
|
||||||
|
dotnet_enable_inlay_hints_for_literal_parameters = true,
|
||||||
|
dotnet_enable_inlay_hints_for_object_creation_parameters = true,
|
||||||
|
dotnet_enable_inlay_hints_for_other_parameters = true,
|
||||||
|
dotnet_enable_inlay_hints_for_parameters = true,
|
||||||
|
dotnet_suppress_inlay_hints_for_parameters_that_differ_only_by_suffix = true,
|
||||||
|
dotnet_suppress_inlay_hints_for_parameters_that_match_argument_name = true,
|
||||||
|
dotnet_suppress_inlay_hints_for_parameters_that_match_method_intent = true,
|
||||||
|
},
|
||||||
|
['csharp|code_lens'] = {
|
||||||
|
dotnet_enable_references_code_lens = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
'deparr/tairiki.nvim',
|
||||||
|
lazy = false,
|
||||||
|
priority = 1000, -- only necessary if you use tairiki as default theme
|
||||||
|
config = function()
|
||||||
|
require('tairiki').setup {
|
||||||
|
style = 'dark',
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
}
|
|
@ -1,214 +1,25 @@
|
||||||
|
-- Neo-tree is a Neovim plugin to browse the file system
|
||||||
|
-- https://github.com/nvim-neo-tree/neo-tree.nvim
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'nvim-neo-tree/neo-tree.nvim',
|
'nvim-neo-tree/neo-tree.nvim',
|
||||||
branch = 'v3.x',
|
version = '*',
|
||||||
requires = {
|
dependencies = {
|
||||||
'nvim-lua/plenary.nvim',
|
'nvim-lua/plenary.nvim',
|
||||||
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
|
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
|
||||||
'MunifTanjim/nui.nvim',
|
'MunifTanjim/nui.nvim',
|
||||||
{
|
|
||||||
's1n7ax/nvim-window-picker',
|
|
||||||
version = '2.*',
|
|
||||||
config = function()
|
|
||||||
require('window-picker').setup {
|
|
||||||
filter_rules = {
|
|
||||||
include_current_win = false,
|
|
||||||
autoselect_one = true,
|
|
||||||
bo = {
|
|
||||||
filetype = { 'neo-tree', 'neo-tree-popup', 'notify' },
|
|
||||||
buftype = { 'terminal', 'quickfix' },
|
|
||||||
},
|
},
|
||||||
|
cmd = 'Neotree',
|
||||||
|
keys = {
|
||||||
|
{ '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal', silent = true },
|
||||||
},
|
},
|
||||||
}
|
opts = {
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
vim.fn.sign_define('DiagnosticSignError', { text = ' ', texthl = 'DiagnosticSignError' })
|
|
||||||
vim.fn.sign_define('DiagnosticSignWarn', { text = ' ', texthl = 'DiagnosticSignWarn' })
|
|
||||||
vim.fn.sign_define('DiagnosticSignInfo', { text = ' ', texthl = 'DiagnosticSignInfo' })
|
|
||||||
vim.fn.sign_define('DiagnosticSignHint', { text = '', texthl = 'DiagnosticSignHint' })
|
|
||||||
|
|
||||||
require('neo-tree').setup {
|
|
||||||
close_if_last_window = false,
|
|
||||||
popup_border_style = 'rounded',
|
|
||||||
enable_git_status = true,
|
|
||||||
enable_diagnostics = true,
|
|
||||||
open_files_do_not_replace_types = { 'terminal', 'trouble', 'qf' },
|
|
||||||
sort_case_insensitive = false,
|
|
||||||
sort_function = nil,
|
|
||||||
default_component_configs = {
|
|
||||||
container = { enable_character_fade = true },
|
|
||||||
indent = {
|
|
||||||
indent_size = 2,
|
|
||||||
padding = 1,
|
|
||||||
with_markers = true,
|
|
||||||
indent_marker = '│',
|
|
||||||
last_indent_marker = '└',
|
|
||||||
highlight = 'NeoTreeIndentMarker',
|
|
||||||
with_expanders = nil,
|
|
||||||
expander_collapsed = '',
|
|
||||||
expander_expanded = '',
|
|
||||||
expander_highlight = 'NeoTreeExpander',
|
|
||||||
},
|
|
||||||
icon = {
|
|
||||||
folder_closed = '',
|
|
||||||
folder_open = '',
|
|
||||||
folder_empty = '',
|
|
||||||
default = '*',
|
|
||||||
highlight = 'NeoTreeFileIcon',
|
|
||||||
},
|
|
||||||
modified = {
|
|
||||||
symbol = '[+]',
|
|
||||||
highlight = 'NeoTreeModified',
|
|
||||||
},
|
|
||||||
name = {
|
|
||||||
trailing_slash = false,
|
|
||||||
use_git_status_colors = true,
|
|
||||||
highlight = 'NeoTreeFileName',
|
|
||||||
},
|
|
||||||
git_status = {
|
|
||||||
symbols = {
|
|
||||||
added = '',
|
|
||||||
modified = '',
|
|
||||||
deleted = '✖',
|
|
||||||
renamed = '',
|
|
||||||
untracked = '',
|
|
||||||
ignored = '',
|
|
||||||
unstaged = '',
|
|
||||||
staged = '',
|
|
||||||
conflict = '',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
file_size = { enabled = true, required_width = 64 },
|
|
||||||
type = { enabled = true, required_width = 122 },
|
|
||||||
last_modified = { enabled = true, required_width = 88 },
|
|
||||||
created = { enabled = true, required_width = 110 },
|
|
||||||
symlink_target = { enabled = false },
|
|
||||||
},
|
|
||||||
commands = {},
|
|
||||||
window = {
|
|
||||||
position = 'right', -- Set the position of Neo-tree window to the right
|
|
||||||
mapping_options = {
|
|
||||||
noremap = true,
|
|
||||||
nowait = true,
|
|
||||||
},
|
|
||||||
mappings = {
|
|
||||||
['<space>'] = { 'toggle_node', nowait = false },
|
|
||||||
['<2-LeftMouse>'] = 'open',
|
|
||||||
['<cr>'] = 'open',
|
|
||||||
['<esc>'] = 'cancel',
|
|
||||||
['P'] = { 'toggle_preview', config = { use_float = true, use_image_nvim = true } },
|
|
||||||
['l'] = 'focus_preview',
|
|
||||||
['S'] = 'open_split',
|
|
||||||
['s'] = 'open_vsplit',
|
|
||||||
['t'] = 'open_tabnew',
|
|
||||||
['w'] = 'open_with_window_picker',
|
|
||||||
['C'] = 'close_node',
|
|
||||||
['z'] = 'close_all_nodes',
|
|
||||||
['a'] = {
|
|
||||||
'add',
|
|
||||||
config = { show_path = 'none' },
|
|
||||||
},
|
|
||||||
['A'] = 'add_directory',
|
|
||||||
['d'] = 'delete',
|
|
||||||
['r'] = 'rename',
|
|
||||||
['y'] = 'copy_to_clipboard',
|
|
||||||
['x'] = 'cut_to_clipboard',
|
|
||||||
['p'] = 'paste_from_clipboard',
|
|
||||||
['c'] = 'copy',
|
|
||||||
['m'] = 'move',
|
|
||||||
['q'] = 'close_window',
|
|
||||||
['R'] = 'refresh',
|
|
||||||
['?'] = 'show_help',
|
|
||||||
['<'] = 'prev_source',
|
|
||||||
['>'] = 'next_source',
|
|
||||||
['i'] = 'show_file_details',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
nesting_rules = {},
|
|
||||||
filesystem = {
|
filesystem = {
|
||||||
filtered_items = {
|
|
||||||
visible = false,
|
|
||||||
hide_dotfiles = true,
|
|
||||||
hide_gitignored = true,
|
|
||||||
hide_hidden = true,
|
|
||||||
},
|
|
||||||
follow_current_file = { enabled = false, leave_dirs_open = false },
|
|
||||||
group_empty_dirs = false,
|
|
||||||
hijack_netrw_behavior = 'open_default',
|
|
||||||
use_libuv_file_watcher = false,
|
|
||||||
window = {
|
window = {
|
||||||
mappings = {
|
mappings = {
|
||||||
['<bs>'] = 'navigate_up',
|
['\\'] = 'close_window',
|
||||||
['.'] = 'set_root',
|
|
||||||
['H'] = 'toggle_hidden',
|
|
||||||
['/'] = 'fuzzy_finder',
|
|
||||||
['D'] = 'fuzzy_finder_directory',
|
|
||||||
['#'] = 'fuzzy_sorter',
|
|
||||||
['f'] = 'filter_on_submit',
|
|
||||||
['<c-x>'] = 'clear_filter',
|
|
||||||
['[g'] = 'prev_git_modified',
|
|
||||||
[']g'] = 'next_git_modified',
|
|
||||||
['o'] = { 'show_help', nowait = false, config = { title = 'Order by', prefix_key = 'o' } },
|
|
||||||
['oc'] = { 'order_by_created', nowait = false },
|
|
||||||
['od'] = { 'order_by_diagnostics', nowait = false },
|
|
||||||
['og'] = { 'order_by_git_status', nowait = false },
|
|
||||||
['om'] = { 'order_by_modified', nowait = false },
|
|
||||||
['on'] = { 'order_by_name', nowait = false },
|
|
||||||
['os'] = { 'order_by_size', nowait = false },
|
|
||||||
['ot'] = { 'order_by_type', nowait = false },
|
|
||||||
},
|
},
|
||||||
fuzzy_finder_mappings = {
|
|
||||||
['<down>'] = 'move_cursor_down',
|
|
||||||
['<C-n>'] = 'move_cursor_down',
|
|
||||||
['<up>'] = 'move_cursor_up',
|
|
||||||
['<C-p>'] = 'move_cursor_up',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
commands = {},
|
|
||||||
},
|
|
||||||
buffers = {
|
|
||||||
follow_current_file = { enabled = true, leave_dirs_open = false },
|
|
||||||
group_empty_dirs = true,
|
|
||||||
show_unloaded = true,
|
|
||||||
window = {
|
|
||||||
mappings = {
|
|
||||||
['bd'] = 'buffer_delete',
|
|
||||||
['<bs>'] = 'navigate_up',
|
|
||||||
['.'] = 'set_root',
|
|
||||||
['o'] = { 'show_help', nowait = false, config = { title = 'Order by', prefix_key = 'o' } },
|
|
||||||
['oc'] = { 'order_by_created', nowait = false },
|
|
||||||
['od'] = { 'order_by_diagnostics', nowait = false },
|
|
||||||
['om'] = { 'order_by_modified', nowait = false },
|
|
||||||
['on'] = { 'order_by_name', nowait = false },
|
|
||||||
['os'] = { 'order_by_size', nowait = false },
|
|
||||||
['ot'] = { 'order_by_type', nowait = false },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
git_status = {
|
|
||||||
window = {
|
|
||||||
position = 'float',
|
|
||||||
mappings = {
|
|
||||||
['A'] = 'git_add_all',
|
|
||||||
['gu'] = 'git_unstage_file',
|
|
||||||
['ga'] = 'git_add_file',
|
|
||||||
['gr'] = 'git_revert_file',
|
|
||||||
['gc'] = 'git_commit',
|
|
||||||
['gp'] = 'git_push',
|
|
||||||
['gg'] = 'git_commit_and_push',
|
|
||||||
['o'] = { 'show_help', nowait = false, config = { title = 'Order by', prefix_key = 'o' } },
|
|
||||||
['oc'] = { 'order_by_created', nowait = false },
|
|
||||||
['od'] = { 'order_by_diagnostics', nowait = false },
|
|
||||||
['om'] = { 'order_by_modified', nowait = false },
|
|
||||||
['on'] = { 'order_by_name', nowait = false },
|
|
||||||
['os'] = { 'order_by_size', nowait = false },
|
|
||||||
['ot'] = { 'order_by_type', nowait = false },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.cmd [[nnoremap \ :Neotree reveal<cr>]]
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue