mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-08-13 22:50:52 +02:00
some nvim plugins
This commit is contained in:
parent
bad1d8bfcc
commit
d885ff9964
2 changed files with 25 additions and 3 deletions
12
init.lua
12
init.lua
|
@ -764,14 +764,20 @@ require('lazy').setup({
|
|||
lsp_format = 'fallback',
|
||||
}
|
||||
end
|
||||
return {
|
||||
timeout_ms = 2000,
|
||||
lsp_format = lsp_format_opt,
|
||||
}
|
||||
end,
|
||||
formatters_by_ft = {
|
||||
lua = { 'stylua' },
|
||||
-- Conform can also run multiple formatters sequentially
|
||||
python = { 'ruff_fix', 'ruff_format', 'ruff_organize_imports' },
|
||||
json = {},
|
||||
python = { 'ruff_format', 'ruff_organize_imports' },
|
||||
json = { 'prettier' },
|
||||
-- You can use 'stop_after_first' to run the first available formatter from the list
|
||||
javascript = { 'prettierd', 'prettier', stop_after_first = true },
|
||||
yaml = { 'prettierd', 'prettier', stop_after_first = true },
|
||||
typescript = { 'prettierd', 'prettier', stop_after_first = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -992,7 +998,7 @@ require('lazy').setup({
|
|||
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
|
||||
--
|
||||
-- require 'kickstart.plugins.debug',
|
||||
-- require 'kickstart.plugins.indent_line',
|
||||
require 'kickstart.plugins.indent_line',
|
||||
-- require 'kickstart.plugins.lint',
|
||||
-- require 'kickstart.plugins.autopairs',
|
||||
-- require 'kickstart.plugins.neo-tree',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue