ref(nvim): reformat using the all mighty lsp

This commit is contained in:
Léana 江 2023-02-23 12:11:02 +01:00
parent 88a5ea7267
commit bc9b520671
12 changed files with 147 additions and 152 deletions

View file

@ -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,
})