chg: 2 space tabs in Haskell files, and some desc change
This commit is contained in:
parent
f89a9107a1
commit
5a7f792989
5 changed files with 23 additions and 7 deletions
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue