mirror of https://github.com/E-Almqvist/dotfiles
parent
6a021b8a8c
commit
7049151967
@ -0,0 +1,22 @@ |
||||
local on_attach = require("nvchad.configs.lspconfig").on_attach |
||||
local on_init = require("nvchad.configs.lspconfig").on_init |
||||
local capabilities = require("nvchad.configs.lspconfig").capabilities |
||||
|
||||
local lspconfig = require "lspconfig" |
||||
local servers = { "html", "cssls", "tsserver", "clangd", "ghdl_ls", "hls", "tailwindcss", "pyright", "julials" } |
||||
|
||||
-- lsps with default config |
||||
for _, lsp in ipairs(servers) do |
||||
lspconfig[lsp].setup { |
||||
on_attach = on_attach, |
||||
on_init = on_init, |
||||
capabilities = capabilities, |
||||
} |
||||
end |
||||
|
||||
-- typescript |
||||
lspconfig.tsserver.setup { |
||||
on_attach = on_attach, |
||||
on_init = on_init, |
||||
capabilities = capabilities, |
||||
} |
@ -1,18 +0,0 @@ |
||||
local on_attach = require("plugins.configs.lspconfig").on_attach |
||||
local capabilities = require("plugins.configs.lspconfig").capabilities |
||||
|
||||
local lspconfig = require("lspconfig") |
||||
|
||||
-- if you just want default config for the servers then put them in a table |
||||
local servers = { "html", "cssls", "tsserver", "clangd", "ghdl_ls", "hls", "tailwindcss", "pyright", "julials" } |
||||
|
||||
for _, lsp in ipairs(servers) do |
||||
lspconfig[lsp].setup({ |
||||
on_attach = on_attach, |
||||
capabilities = capabilities, |
||||
}) |
||||
end |
||||
|
||||
-- |
||||
-- lspconfig.pyright.setup { blabla} |
||||
-- |
@ -1,66 +0,0 @@ |
||||
local M = {} |
||||
|
||||
M.treesitter = { |
||||
ensure_installed = { |
||||
"vim", |
||||
"lua", |
||||
"html", |
||||
"css", |
||||
"javascript", |
||||
"typescript", |
||||
"tsx", |
||||
"c", |
||||
"markdown", |
||||
"markdown_inline", |
||||
"prisma", |
||||
"haskell", |
||||
"python", |
||||
"zig", |
||||
}, |
||||
indent = { |
||||
enable = true, |
||||
-- disable = { |
||||
-- "python" |
||||
-- }, |
||||
}, |
||||
} |
||||
|
||||
M.mason = { |
||||
ensure_installed = { |
||||
-- lua stuff |
||||
"lua-language-server", |
||||
"stylua", |
||||
|
||||
-- web dev stuff |
||||
"css-lsp", |
||||
"html-lsp", |
||||
"typescript-language-server", |
||||
"deno", |
||||
"prettier", |
||||
|
||||
-- c/cpp stuff |
||||
"clangd", |
||||
"clang-format", |
||||
|
||||
-- Fun/joke langs |
||||
"hls", |
||||
}, |
||||
} |
||||
|
||||
-- git support in nvimtree |
||||
M.nvimtree = { |
||||
git = { |
||||
enable = true, |
||||
}, |
||||
|
||||
renderer = { |
||||
highlight_git = true, |
||||
icons = { |
||||
show = { |
||||
git = true, |
||||
}, |
||||
}, |
||||
}, |
||||
} |
||||
|
||||
return M |
@ -1,12 +0,0 @@ |
||||
-- local autocmd = vim.api.nvim_create_autocmd |
||||
|
||||
-- Auto resize panes when resizing nvim window |
||||
-- autocmd("VimResized", { |
||||
-- pattern = "*", |
||||
-- command = "tabdo wincmd =", |
||||
-- }) |
||||
vim.filetype.add({ |
||||
extension = { |
||||
mdx = 'mdx' |
||||
} |
||||
}) |
@ -0,0 +1,6 @@ |
||||
require "nvchad.options" |
||||
|
||||
-- add yours here! |
||||
|
||||
-- local o = vim.o |
||||
-- o.cursorlineopt ='both' -- to enable cursorline! |
Loading…
Reference in new issue