summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorAdam Stück <adam@adast.xyz>2023-02-20 16:14:56 +0100
committerAdam Stück <adam@adast.xyz>2023-02-20 16:14:56 +0100
commit05af223b15e0fcc67aca55ef45b044f0f3c0a3a5 (patch)
treede98b6e4e2d7a6141f18d0e5aed3a31e7750b624 /.config/nvim
parentabebf664ff3f6ec9ffee58749d32168d3516d13d (diff)
nvim: updated some settings and lspconfig
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/options.lua4
-rw-r--r--.config/nvim/lua/setup/lspconfig.lua46
2 files changed, 9 insertions, 41 deletions
diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua
index 8909651..860a560 100644
--- a/.config/nvim/lua/options.lua
+++ b/.config/nvim/lua/options.lua
@@ -28,13 +28,13 @@ set.ruler = false
set.timeout = false
set.ttimeoutlen = 200
set.wrap = false
-set.fcs = 'eob: '
+-- set.fcs = 'eob: '
set.swapfile = false
set.pumblend = 0
set.splitright = true
set.splitbelow = true
set.cursorline = true
-set.signcolumn = 'yes'
+set.signcolumn = 'auto'
set.title = true
-- set.cmdheight = 0
set.winbar = '%=%m %f'
diff --git a/.config/nvim/lua/setup/lspconfig.lua b/.config/nvim/lua/setup/lspconfig.lua
index 373c347..2c894fe 100644
--- a/.config/nvim/lua/setup/lspconfig.lua
+++ b/.config/nvim/lua/setup/lspconfig.lua
@@ -12,7 +12,7 @@ local function on_attach()
-- ]])
end
-lspconfig.sumneko_lua.setup {
+lspconfig.lua_ls.setup {
on_attach = on_attach,
settings = {
Lua = {
@@ -22,53 +22,21 @@ lspconfig.sumneko_lua.setup {
}
}
}
+
-- lspconfig.hls.setup {
-- on_attach = on_attach,
+-- filetypes = { 'haskell', 'lhaskell', 'cabal' },
-- }
--- lspconfig.pyright.setup {
--- on_attach = on_attach,
--- }
-lspconfig.ccls.setup {
- on_attach = on_attach,
-}
--- lspconfig.clangd.setup {
--- on_attach = on_attach,
--- }
-lspconfig.rust_analyzer.setup {
- on_attach = on_attach,
-}
+
lspconfig.bashls.setup {
on_attach = on_attach,
}
--- lspconfig.dockerls.setup {
--- on_attach = on_attach,
--- }
--- lspconfig.yamlls.setup {
--- on_attach = on_attach,
--- }
--- lspconfig.html.setup {
--- on_attach = on_attach,
--- }
--- lspconfig.cssls.setup {
--- on_attach = on_attach,
--- }
--- lspconfig.marksman.setup {
--- on_attach = on_attach,
--- }
--- lspconfig.jsonls.setup {
--- on_attach = on_attach,
--- }
--- lspconfig.tsserver.setup {
--- on_attach = on_attach,
--- }
+
-- lspconfig.omnisharp.setup {
+-- cmd = { "/usr/bin/omnisharp", "--languageserver" , "--hostPID", tostring(vim.fn.getpid()) },
-- on_attach = on_attach,
--- use_mono = true,
--- }
--- lspconfig.texlab.setup {
--- on_attach = on_attach,
+-- -- use_mono = true,
-- }
--- vim.cmd("let g:tex_flavor = 'tex'")
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
for type, icon in pairs(signs) do