mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref(nvim): reformat using the all mighty lsp ✨
This commit is contained in:
parent
88a5ea7267
commit
bc9b520671
12 changed files with 147 additions and 152 deletions
|
|
@ -19,25 +19,27 @@ vim.opt.backup = false
|
|||
|
||||
vim.cmd "colorscheme one-nvim"
|
||||
|
||||
-- Tabwidth and shit
|
||||
-- vim.api.nvim_create_autocmd('FileType', {
|
||||
-- pattern = {
|
||||
-- 'lua', 'scala'
|
||||
-- },
|
||||
-- callback = function()
|
||||
-- vim.opt.shiftwidth = 2
|
||||
-- vim.opt.softtabstop = 2
|
||||
-- vim.opt.tabstop = 2
|
||||
-- end,
|
||||
-- })
|
||||
-- vim.api.nvim_create_autocmd('FileType', {
|
||||
-- pattern = {
|
||||
-- 'rust', 'fish', 'python'
|
||||
-- },
|
||||
-- callback = function()
|
||||
-- vim.opt.shiftwidth = 4
|
||||
-- vim.opt.softtabstop = 4
|
||||
-- vim.opt.tabstop = 4
|
||||
-- end,
|
||||
-- })
|
||||
vim.cmd("filetype plugin on")
|
||||
vim.g.sleuth_default_indent = "2"
|
||||
|
||||
-- Tabwidth and shit
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = {
|
||||
'lua', 'scala'
|
||||
},
|
||||
callback = function()
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.softtabstop = 2
|
||||
vim.opt.tabstop = 2
|
||||
end,
|
||||
})
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = {
|
||||
'rust', 'fish', 'python'
|
||||
},
|
||||
callback = function()
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.tabstop = 4
|
||||
end,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue