chg: 2 space tabs in Haskell files, and some desc change

This commit is contained in:
Sayantan Santra 2024-05-21 19:10:50 -05:00
parent f89a9107a1
commit 5a7f792989
Signed by: SinTan1729
GPG Key ID: EB3E68BFBA25C85F
5 changed files with 23 additions and 7 deletions

View File

@ -12,10 +12,22 @@ set.cmdheight = 0
-- Ignore case while searching except when the search term contains capital letters -- Ignore case while searching except when the search term contains capital letters
set.ignorecase = true set.ignorecase = true
set.smartcase = true set.smartcase = true
-- Use 4 spaces and properly adjust them for files using TAB -- Use 4 spaces and properly adjust them for files using TAB,
set.tabstop = 4 -- except for Haskell
set.shiftwidth = 4 vim.api.nvim_create_autocmd("FileType", {
set.softtabstop = 4 pattern = "*",
callback = function()
local tabsize
if string.find(" haskell ", ' ' .. vim.bo.filetype .. ' ') then
tabsize = 2
else
tabsize = 4
end
set.tabstop = tabsize
set.shiftwidth = tabsize
set.softtabstop = tabsize
end,
})
set.expandtab = true set.expandtab = true
-- Show LSP signs in the number column -- Show LSP signs in the number column
set.signcolumn = 'number' set.signcolumn = 'number'

View File

@ -20,6 +20,7 @@ lspconfig.lua_ls.setup({
}) })
lspconfig.ocamllsp.setup {} lspconfig.ocamllsp.setup {}
lspconfig.hls.setup {} lspconfig.hls.setup {}
-- Set ;k to hover and ;a to show code actions -- Set ;k to hover and ;a to show code actions

View File

@ -1,4 +1,5 @@
-- This file lists all the plugins that need to be initiated to default setup -- This file has configs for things that are not really related to anything else,
-- so don't really deserve to be put in a separate config file
-- Default settings for comment plugin -- Default settings for comment plugin
require("Comment").setup() require("Comment").setup()

View File

@ -1,4 +1,5 @@
-- This file lists all the plugins that need to be initiated to default setup -- This file has configs for things that are not really related to anything else,
-- so don't really deserve to be put in a separate config file
-- Default settings for comment plugin -- Default settings for comment plugin
require("Comment").setup() require("Comment").setup()

View File

@ -1,4 +1,5 @@
-- This file lists all the plugins that need to be initiated to default setup -- This file has configs for things that are not really related to anything else,
-- so don't really deserve to be put in a separate config file
-- Default settings for comment plugin -- Default settings for comment plugin
require("Comment").setup() require("Comment").setup()