fix: remove some unneeded config
This commit is contained in:
+1
-4
@@ -59,7 +59,6 @@ Config.later(function()
|
||||
{ mode = { 'n', 'x' }, keys = '"' },
|
||||
{ mode = { 'i', 'c' }, keys = '<C-r>' },
|
||||
{ mode = 'n', keys = '<C-w>' },
|
||||
{ mode = { 'n', 'x' }, keys = 's' },
|
||||
{ mode = { 'n', 'x' }, keys = 'z' },
|
||||
},
|
||||
})
|
||||
@@ -71,7 +70,6 @@ Config.later(function()
|
||||
require('mini.pairs').setup()
|
||||
require('mini.pick').setup()
|
||||
require('mini.extra').setup()
|
||||
MiniPick.registry.git_status = function() require('git').status() end
|
||||
end)
|
||||
|
||||
-- File Explorer
|
||||
@@ -85,6 +83,5 @@ end)
|
||||
|
||||
-- Utilities
|
||||
Config.now_if_args(function()
|
||||
require('mini.misc').setup()
|
||||
MiniMisc.setup_auto_root()
|
||||
require('mini.misc').setup_auto_root()
|
||||
end)
|
||||
|
||||
+2
-15
@@ -13,8 +13,6 @@ end)
|
||||
-- Treesitter
|
||||
Config.now_if_args(function()
|
||||
vim.pack.add({ 'https://github.com/nvim-treesitter/nvim-treesitter' })
|
||||
vim.treesitter.language.register('bash', 'sh')
|
||||
vim.treesitter.language.register('tsx', 'typescriptreact')
|
||||
|
||||
local filetypes = {
|
||||
'html', 'css', 'lua', 'go', 'php', 'blade', 'sql', 'javascript',
|
||||
@@ -29,18 +27,7 @@ Config.now_if_args(function()
|
||||
end, 'Start tree-sitter')
|
||||
|
||||
Config.later(function()
|
||||
local missing = {}
|
||||
|
||||
for _, ft in ipairs(filetypes) do
|
||||
local lang = vim.treesitter.language.get_lang(ft) or ft
|
||||
if #vim.api.nvim_get_runtime_file('parser/' .. lang .. '.so', false) == 0 then
|
||||
table.insert(missing, lang)
|
||||
end
|
||||
end
|
||||
|
||||
if #missing > 0 then
|
||||
require('nvim-treesitter').install(missing)
|
||||
end
|
||||
require('nvim-treesitter').install(vim.iter(filetypes):map(vim.treesitter.language.get_lang):totable())
|
||||
end)
|
||||
end)
|
||||
|
||||
@@ -55,7 +42,7 @@ Config.later(function()
|
||||
vim.pack.add({ 'https://github.com/stevearc/conform.nvim' })
|
||||
require('conform').setup({
|
||||
default_format_opts = { lsp_format = 'fallback' },
|
||||
format_on_save = { lsp_format = 'fallback', timeout_ms = 1000 },
|
||||
format_on_save = { timeout_ms = 1000 },
|
||||
formatters_by_ft = {
|
||||
go = { 'gofumpt', 'goimports' },
|
||||
php = { 'php_cs_fixer' },
|
||||
|
||||
Reference in New Issue
Block a user