chore: cleaning up (remove and rename files, refactor config, fix errors)
This commit is contained in:
@@ -12,6 +12,7 @@ tab_width = 3
|
|||||||
|
|
||||||
[*.lua]
|
[*.lua]
|
||||||
max_line_length = 120
|
max_line_length = 120
|
||||||
|
insert_final_newline = false
|
||||||
|
|
||||||
[{*.yaml,*.yml}]
|
[{*.yaml,*.yml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
@@ -24,3 +25,4 @@ indent_style = tab
|
|||||||
[*.md]
|
[*.md]
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
insert_final_newline = true
|
||||||
@@ -17,7 +17,6 @@ require('lazy').setup({
|
|||||||
{ import = 'core.colorscheme' },
|
{ import = 'core.colorscheme' },
|
||||||
{ import = 'plugins' },
|
{ import = 'plugins' },
|
||||||
{ import = 'plugins.treesitter' },
|
{ import = 'plugins.treesitter' },
|
||||||
{ import = 'plugins.lsp' },
|
|
||||||
}, {
|
}, {
|
||||||
install = {
|
install = {
|
||||||
colorscheme = { 'nord' },
|
colorscheme = { 'nord' },
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
return {
|
|
||||||
'Dynge/gitmoji.nvim',
|
|
||||||
dependencies = {
|
|
||||||
'hrsh7th/nvim-cmp',
|
|
||||||
},
|
|
||||||
ft = 'gitcommit',
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
return {
|
|
||||||
'williamboman/mason-lspconfig.nvim',
|
|
||||||
dependencies = {
|
|
||||||
'williamboman/mason.nvim',
|
|
||||||
},
|
|
||||||
lazy = true,
|
|
||||||
}
|
|
||||||
@@ -1,45 +1,34 @@
|
|||||||
return {
|
return {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
-- event = { "BufReadPre", "BufNewFile" },
|
branch = 'master',
|
||||||
lazy = true,
|
lazy = false,
|
||||||
cmd = { 'TSUpdateSync', 'TSUpdate', 'TSInstall' },
|
|
||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
|
|
||||||
opts = {
|
opts = {
|
||||||
|
sync_install = true,
|
||||||
|
auto_install = true,
|
||||||
|
ensure_installed = {
|
||||||
|
'lua',
|
||||||
|
'markdown',
|
||||||
|
'markdown_inline',
|
||||||
|
'css',
|
||||||
|
'html',
|
||||||
|
'javascript',
|
||||||
|
'json',
|
||||||
|
'xml',
|
||||||
|
'toml',
|
||||||
|
'yaml',
|
||||||
|
'python',
|
||||||
|
'bash',
|
||||||
|
'diff',
|
||||||
|
'regex',
|
||||||
|
'sql',
|
||||||
|
},
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
additional_vim_regex_highlighting = false,
|
additional_vim_regex_highlighting = false,
|
||||||
},
|
},
|
||||||
indent = { enable = true, disable = {} },
|
indent = { enable = true, disable = {} },
|
||||||
ensure_installed = {
|
|
||||||
'bash',
|
|
||||||
'css',
|
|
||||||
'diff',
|
|
||||||
'dockerfile',
|
|
||||||
'git_config',
|
|
||||||
'git_rebase',
|
|
||||||
'gitcommit',
|
|
||||||
'gitignore',
|
|
||||||
'graphql',
|
|
||||||
'html',
|
|
||||||
'javascript',
|
|
||||||
'json',
|
|
||||||
'lua',
|
|
||||||
'markdown',
|
|
||||||
'markdown_inline',
|
|
||||||
'python',
|
|
||||||
'regex',
|
|
||||||
'sql',
|
|
||||||
'todotxt',
|
|
||||||
'vim',
|
|
||||||
'vimdoc',
|
|
||||||
'xml',
|
|
||||||
'tmux',
|
|
||||||
'toml',
|
|
||||||
'yaml',
|
|
||||||
},
|
|
||||||
ignore_install = {},
|
|
||||||
sync_install = true,
|
|
||||||
auto_install = true,
|
|
||||||
incremental_selection = {
|
incremental_selection = {
|
||||||
enable = true,
|
enable = true,
|
||||||
keymaps = {
|
keymaps = {
|
||||||
@@ -50,4 +39,8 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
config = function(_, opts)
|
||||||
|
require('nvim-treesitter.configs').setup(opts)
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
return {
|
||||||
|
'JoosepAlviste/nvim-ts-context-commentstring',
|
||||||
|
enabled = true,
|
||||||
|
dependencies = { 'numToStr/Comment.nvim' },
|
||||||
|
event = 'VeryLazy',
|
||||||
|
opts = {
|
||||||
|
enable_autocmd = false,
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user