mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Update nvim
This commit is contained in:
parent
a01c2ab92c
commit
093639a28a
24 changed files with 102 additions and 119 deletions
|
|
@ -1,13 +0,0 @@
|
|||
require'colorizer'.setup(
|
||||
{'*';}, {
|
||||
mode = 'background';
|
||||
RGB = true; -- #RGB hex codes
|
||||
RRGGBB = true; -- #RRGGBB hex codes
|
||||
RRGGBBAA = false; -- #RRGGBBAA hex codes
|
||||
rgb_fn = true; -- CSS rgb() and rgba() functions
|
||||
hsl_fn = false; -- CSS hsl() and hsla() functions
|
||||
css = false; -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
|
||||
css_fn = true; -- Enable all CSS *functions*: rgb_fn, hsl_fn
|
||||
names = false; -- "Name" codes like Blue
|
||||
}
|
||||
)
|
||||
11
config/nvim/lua/plug/colorizer.lua
Normal file
11
config/nvim/lua/plug/colorizer.lua
Normal 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;
|
||||
})
|
||||
|
|
@ -1,7 +1,3 @@
|
|||
require'lspconfig'.tsserver.setup {}
|
||||
require'lspconfig'.gopls.setup {}
|
||||
require'lspconfig'.pyls.setup {}
|
||||
|
||||
require'compe'.setup {
|
||||
enabled = true,
|
||||
autocomplete = true,
|
||||
3
config/nvim/lua/plug/lspconfig.lua
Normal file
3
config/nvim/lua/plug/lspconfig.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
require'lspconfig'.tsserver.setup {}
|
||||
require'lspconfig'.gopls.setup {}
|
||||
require'lspconfig'.pyls.setup {}
|
||||
1
config/nvim/lua/plug/neogit.lua
Normal file
1
config/nvim/lua/plug/neogit.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
require'neogit'.setup {}
|
||||
|
|
@ -2,7 +2,7 @@ local S = vim.g
|
|||
|
||||
-- Settings
|
||||
S.nvim_tree_side = "left"
|
||||
S.nvim_tree_ignore = {".git", ".cache", "node_modules", "venv"}
|
||||
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
|
||||
13
config/nvim/lua/plug/telescope.lua
Normal file
13
config/nvim/lua/plug/telescope.lua
Normal 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}
|
||||
};
|
||||
};
|
||||
}
|
||||
5
config/nvim/lua/plug/treesitter.lua
Normal file
5
config/nvim/lua/plug/treesitter.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = {'javascript', 'typescript', 'python', 'go'};
|
||||
highlight = { enable = true };
|
||||
indent = { enable = true };
|
||||
}
|
||||
9
config/nvim/lua/plugins.lua
Normal file
9
config/nvim/lua/plugins.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
require'plug.compe'
|
||||
require'plug.lspconfig'
|
||||
require'plug.nvimtree'
|
||||
require'plug.lualine'
|
||||
require'plug.gitsigns'
|
||||
require'plug.neogit'
|
||||
require'plug.treesitter'
|
||||
require'plug.telescope'
|
||||
require'plug.colorizer'
|
||||
Loading…
Add table
Add a link
Reference in a new issue