am just a fox *wags tail* :3
This commit is contained in:
parent
fea82f3532
commit
84264f025f
2 changed files with 22 additions and 5 deletions
|
|
@ -1,5 +1,12 @@
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = { "lua", "nix", "gleam", "css", "json" },
|
pattern = {
|
||||||
|
"lua",
|
||||||
|
"nix",
|
||||||
|
"gleam",
|
||||||
|
"css",
|
||||||
|
"json",
|
||||||
|
"haskell",
|
||||||
|
},
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.opt_local.shiftwidth = 2
|
vim.opt_local.shiftwidth = 2
|
||||||
vim.opt_local.tabstop = 2
|
vim.opt_local.tabstop = 2
|
||||||
|
|
@ -8,7 +15,9 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = { "sql" },
|
pattern = {
|
||||||
|
"sql",
|
||||||
|
},
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.opt_local.shiftwidth = 4
|
vim.opt_local.shiftwidth = 4
|
||||||
vim.opt_local.tabstop = 4
|
vim.opt_local.tabstop = 4
|
||||||
|
|
@ -20,11 +29,20 @@ vim.api.nvim_create_autocmd("User", {
|
||||||
pattern = "TelescopePreviewerLoaded",
|
pattern = "TelescopePreviewerLoaded",
|
||||||
callback = function(args)
|
callback = function(args)
|
||||||
local ft = args.data.filetype
|
local ft = args.data.filetype
|
||||||
if vim.tbl_contains({ "lua", "nix", "gleam", "css", "json" }, ft) then
|
if vim.tbl_contains({
|
||||||
|
"lua",
|
||||||
|
"nix",
|
||||||
|
"gleam",
|
||||||
|
"css",
|
||||||
|
"json",
|
||||||
|
"haskell",
|
||||||
|
}, ft) then
|
||||||
vim.bo.shiftwidth = 2
|
vim.bo.shiftwidth = 2
|
||||||
vim.bo.tabstop = 2
|
vim.bo.tabstop = 2
|
||||||
vim.bo.expandtab = true
|
vim.bo.expandtab = true
|
||||||
elseif vim.tbl_contains({ "sql" }, ft) then
|
elseif vim.tbl_contains({
|
||||||
|
"sql",
|
||||||
|
}, ft) then
|
||||||
vim.bo.shiftwidth = 4
|
vim.bo.shiftwidth = 4
|
||||||
vim.bo.tabstop = 4
|
vim.bo.tabstop = 4
|
||||||
vim.bo.expandtab = true
|
vim.bo.expandtab = true
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,6 @@
|
||||||
};
|
};
|
||||||
platformIndicators.enable = true;
|
platformIndicators.enable = true;
|
||||||
previewMessage.enable = true;
|
previewMessage.enable = true;
|
||||||
relationshipNotifier.enable = true;
|
|
||||||
revealAllSpoilers.enable = true;
|
revealAllSpoilers.enable = true;
|
||||||
serverInfo.enable = true;
|
serverInfo.enable = true;
|
||||||
serverListIndicators.enable = true;
|
serverListIndicators.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue