Update nvim

This commit is contained in:
Smirnov Alexander 2021-06-10 19:09:35 +03:00
parent a01c2ab92c
commit 093639a28a
24 changed files with 102 additions and 119 deletions

View file

@ -0,0 +1,11 @@
require'colorizer'.setup({'*';}, {
mode = 'background';
RGB = true;
RRGGBB = true;
RRGGBBAA = false;
rgb_fn = true;
hsl_fn = false;
css = false;
css_fn = true;
names = false;
})

View file

@ -0,0 +1,9 @@
require'compe'.setup {
enabled = true,
autocomplete = true,
source = {
path = true,
buffer = true,
nvim_lsp = true,
};
}

View file

@ -0,0 +1,18 @@
require'gitsigns'.setup {
signs = {
add = {hl = 'GitSignsAdd', text = ''};
change = {hl = 'GitSignsChange', text = ''};
delete = {hl = 'GitSignsDelete', text = '_'};
topdelete = {hl = 'GitSignsDelete', text = ''};
changedelete = {hl = 'GitSignsChange', text = '~'};
};
watch_index = {
interval = 1000
};
current_line_blame = true,
sign_priority = 6,
update_debounce = 100,
status_formatter = nil,
use_decoration_api = true,
use_internal_diff = true,
}

View file

@ -0,0 +1,3 @@
require'lspconfig'.tsserver.setup {}
require'lspconfig'.gopls.setup {}
require'lspconfig'.pyls.setup {}

View file

@ -0,0 +1,5 @@
require'lualine'.setup {
options = {
theme = "codedark"
};
}

View file

@ -0,0 +1 @@
require'neogit'.setup {}

View file

@ -0,0 +1,8 @@
local S = vim.g
-- Settings
S.nvim_tree_side = "left"
S.nvim_tree_ignore = {".git", ".cache", "node_modules", "venv", "env"}
S.nvim_tree_auto_close = 0
S.nvim_tree_quit_on_open = 0
S.nvim_tree_width = 24

View file

@ -0,0 +1,13 @@
local actions = require('telescope.actions')
require('telescope').setup{
defaults = {
prompt_prefix = "Search > ",
selection_caret = " ",
entry_prefix = " ",
file_ignore_patterns = {"node_modules", "env", ".cache"},
mappings = {
i = {["<esc>"] = actions.close}
};
};
}

View file

@ -0,0 +1,5 @@
require'nvim-treesitter.configs'.setup {
ensure_installed = {'javascript', 'typescript', 'python', 'go'};
highlight = { enable = true };
indent = { enable = true };
}