chore: cleaning up (remove and rename files, refactor config, fix errors)
This commit is contained in:
@@ -12,6 +12,7 @@ tab_width = 3
|
||||
|
||||
[*.lua]
|
||||
max_line_length = 120
|
||||
insert_final_newline = false
|
||||
|
||||
[{*.yaml,*.yml}]
|
||||
indent_size = 2
|
||||
@@ -23,4 +24,5 @@ indent_style = tab
|
||||
|
||||
[*.md]
|
||||
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 = 'plugins' },
|
||||
{ import = 'plugins.treesitter' },
|
||||
{ import = 'plugins.lsp' },
|
||||
}, {
|
||||
install = {
|
||||
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 {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
-- event = { "BufReadPre", "BufNewFile" },
|
||||
lazy = true,
|
||||
cmd = { 'TSUpdateSync', 'TSUpdate', 'TSInstall' },
|
||||
branch = 'master',
|
||||
lazy = false,
|
||||
build = ':TSUpdate',
|
||||
|
||||
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 = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
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 = {
|
||||
enable = true,
|
||||
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