fix: modify nvim-tree
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ linters-settings:
|
|||||||
- name: cognitive-complexity
|
- name: cognitive-complexity
|
||||||
severity: warning
|
severity: warning
|
||||||
disabled: false
|
disabled: false
|
||||||
arguments: [10]
|
arguments: [14]
|
||||||
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#constant-logical-expr
|
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#constant-logical-expr
|
||||||
- name: constant-logical-expr
|
- name: constant-logical-expr
|
||||||
severity: warning
|
severity: warning
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
### 使用
|
### 使用
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
git clone https://github.com/Laily123/.dotfile.git ~/.dotfile
|
git clone https://github.com/Laily123/.dotfile.git ~/.dotfile
|
||||||
```
|
```
|
||||||
|
|
||||||
### zsh 安装
|
### zsh 安装
|
||||||
|
|
||||||
安装 zsh
|
安装 zsh
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH
|
https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH
|
||||||
# macOS
|
# macOS
|
||||||
@@ -15,10 +19,13 @@ apt install zsh
|
|||||||
```
|
```
|
||||||
|
|
||||||
安装 oh-my-zsh
|
安装 oh-my-zsh
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
|
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
|
||||||
```
|
```
|
||||||
|
|
||||||
初始化配置
|
初始化配置
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
ln -sf ~/.dotfile/.zshrc ~/
|
ln -sf ~/.dotfile/.zshrc ~/
|
||||||
ln -sf ~/.dotfile/laily.zsh-theme ~/.oh-my-zsh/themes/
|
ln -sf ~/.dotfile/laily.zsh-theme ~/.oh-my-zsh/themes/
|
||||||
@@ -27,9 +34,10 @@ ln -sf ~/.dotfile/.gitconfig ~/.gitconfig
|
|||||||
```
|
```
|
||||||
|
|
||||||
### spacevim 安装
|
### spacevim 安装
|
||||||
|
|
||||||
安装
|
安装
|
||||||
`curl -sLf https://spacevim.org/install.sh | bash`
|
`curl -sLf https://spacevim.org/install.sh | bash`
|
||||||
初始化配置
|
初始化配置
|
||||||
`ln -sf ~/.dotfile/.SpaceVim.d ~/`
|
`ln -sf ~/.dotfile/.SpaceVim.d ~/`
|
||||||
|
|
||||||
|
#
|
||||||
|
|||||||
@@ -12,7 +12,9 @@ local function my_on_attach(bufnr)
|
|||||||
vim.keymap.set('n', '<C-t>', api.tree.change_root_to_parent, opts('Up'))
|
vim.keymap.set('n', '<C-t>', api.tree.change_root_to_parent, opts('Up'))
|
||||||
vim.keymap.set('n', '?', api.tree.toggle_help, opts('Help'))
|
vim.keymap.set('n', '?', api.tree.toggle_help, opts('Help'))
|
||||||
vim.keymap.set('n', 'l', api.node.open.edit, opts('Edit'))
|
vim.keymap.set('n', 'l', api.node.open.edit, opts('Edit'))
|
||||||
vim.keymap.set('n', 'h', api.node.navigate.parent_close, opts('Parent Close'))
|
vim.keymap.set('n', 'h', api.node.navigate.parent_close, opts('Parent Close'))
|
||||||
|
vim.keymap.set('n', 's', api.node.open.horizontal, opts('Horizontal Split'))
|
||||||
|
vim.keymap.set('n', 'v', api.node.open.vertical, opts('Vertical Split'))
|
||||||
end
|
end
|
||||||
|
|
||||||
require'nvim-tree'.setup {
|
require'nvim-tree'.setup {
|
||||||
@@ -34,7 +36,7 @@ require'nvim-tree'.setup {
|
|||||||
enable = true,
|
enable = true,
|
||||||
-- update the root directory of the tree to the one of the folder containing the file if the file is not under the current root directory
|
-- update the root directory of the tree to the one of the folder containing the file if the file is not under the current root directory
|
||||||
-- only relevant when `update_focused_file.enable` is true
|
-- only relevant when `update_focused_file.enable` is true
|
||||||
update_cwd = true,
|
update_cwd = false,
|
||||||
-- list of buffer names / filetypes that will not update the cwd if the file isn't found under the current root directory
|
-- list of buffer names / filetypes that will not update the cwd if the file isn't found under the current root directory
|
||||||
-- only relevant when `update_focused_file.update_cwd` is true and `update_focused_file.enable` is true
|
-- only relevant when `update_focused_file.update_cwd` is true and `update_focused_file.enable` is true
|
||||||
ignore_list = {}
|
ignore_list = {}
|
||||||
|
|||||||
@@ -203,13 +203,14 @@ return require("packer").startup(function(use)
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- markdown
|
-- markdown
|
||||||
use { 'godlygeek/tabular' }
|
-- use { 'godlygeek/tabular' }
|
||||||
use { 'preservim/vim-markdown' }
|
-- use { 'preservim/vim-markdown' }
|
||||||
use {
|
|
||||||
'iamcco/markdown-preview.nvim',
|
-- use {
|
||||||
run = function() vim.fn['mkdp#util#install']() end,
|
-- 'iamcco/markdown-preview.nvim',
|
||||||
ft = { 'markdown' }
|
-- run = function() vim.fn['mkdp#util#install']() end,
|
||||||
}
|
-- ft = { 'markdown' }
|
||||||
|
-- }
|
||||||
|
|
||||||
use {'tpope/vim-fugitive'}
|
use {'tpope/vim-fugitive'}
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ vim.cmd('filetype plugin on') -- filetype detection
|
|||||||
vim.o.guifont = "FiraCode Nerd Font:h17"
|
vim.o.guifont = "FiraCode Nerd Font:h17"
|
||||||
|
|
||||||
-- vim.o.guifont = "JetBrains\\ Mono\\ Regular\\ Nerd\\ Font\\ Complete"
|
-- vim.o.guifont = "JetBrains\\ Mono\\ Regular\\ Nerd\\ Font\\ Complete"
|
||||||
|
vim.g.vim_markdown_folding_disabled = 1
|
||||||
|
|
||||||
vim.g.vimspector_enable_mappings = 'HUMAN'
|
vim.g.vimspector_enable_mappings = 'HUMAN'
|
||||||
vim.g['test#go#rspec#options'] = { nearest= '--v', suite= '--v' }
|
vim.g['test#go#rspec#options'] = { nearest= '--v', suite= '--v' }
|
||||||
|
|||||||
Reference in New Issue
Block a user