diff options
author | Jack Sangdahl <[email protected]> | 2024-05-04 16:39:34 -0600 |
---|---|---|
committer | Jack Sangdahl <[email protected]> | 2024-05-04 16:39:34 -0600 |
commit | 2a1e50a6e4708e46405d67f0bd845cd12d80d888 (patch) | |
tree | 8a297eae47a82689e053369c956db211984e5c3b /.config/nvim/lua/configs | |
parent | 0aa584a32d58b993383a97be5ea0d63841b369fd (diff) | |
download | dots-2a1e50a6e4708e46405d67f0bd845cd12d80d888.tar.gz dots-2a1e50a6e4708e46405d67f0bd845cd12d80d888.zip |
standalone nvim config
Diffstat (limited to '.config/nvim/lua/configs')
-rw-r--r-- | .config/nvim/lua/configs/conform.lua | 17 | ||||
-rw-r--r-- | .config/nvim/lua/configs/lazy.lua | 47 | ||||
-rw-r--r-- | .config/nvim/lua/configs/lspconfig.lua | 14 | ||||
-rw-r--r-- | .config/nvim/lua/configs/vimtex.lua | 5 |
4 files changed, 83 insertions, 0 deletions
diff --git a/.config/nvim/lua/configs/conform.lua b/.config/nvim/lua/configs/conform.lua new file mode 100644 index 00000000..838a8dad --- /dev/null +++ b/.config/nvim/lua/configs/conform.lua @@ -0,0 +1,17 @@ +local options = { + formatters_by_ft = { + python = { "black" }, + rust = { "rustfmt" }, + lua = { "stylua" }, + cpp = { "clang-format" }, + c = { "clang-format" }, + css = { "prettier" }, + html = { "prettier" }, + }, + format_on_save = { + timeout_ms = 500, + lsp_fallback = true, + }, +} + +require("conform").setup(options) diff --git a/.config/nvim/lua/configs/lazy.lua b/.config/nvim/lua/configs/lazy.lua new file mode 100644 index 00000000..cd170bd3 --- /dev/null +++ b/.config/nvim/lua/configs/lazy.lua @@ -0,0 +1,47 @@ +return { + defaults = { lazy = true }, + install = { colorscheme = { "nvchad" } }, + + ui = { + icons = { + ft = "", + lazy = " ", + loaded = "", + not_loaded = "", + }, + }, + + performance = { + rtp = { + disabled_plugins = { + "2html_plugin", + "tohtml", + "getscript", + "getscriptPlugin", + "gzip", + "logipat", + "netrw", + "netrwPlugin", + "netrwSettings", + "netrwFileHandlers", + "matchit", + "tar", + "tarPlugin", + "rrhelper", + "spellfile_plugin", + "vimball", + "vimballPlugin", + "zip", + "zipPlugin", + "tutor", + "rplugin", + "syntax", + "synmenu", + "optwin", + "compiler", + "bugreport", + "ftplugin", + }, + }, + }, +} diff --git a/.config/nvim/lua/configs/lspconfig.lua b/.config/nvim/lua/configs/lspconfig.lua new file mode 100644 index 00000000..eaf7856f --- /dev/null +++ b/.config/nvim/lua/configs/lspconfig.lua @@ -0,0 +1,14 @@ +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 = { "pylsp", "clangd", "cssls", "rust_analyzer", "marksman", "bash-language-server" } + +for _, lsp in ipairs(servers) do + lspconfig[lsp].setup({ + on_attach = on_attach, + on_init = on_init, + capabilities = capabilities, + }) +end diff --git a/.config/nvim/lua/configs/vimtex.lua b/.config/nvim/lua/configs/vimtex.lua new file mode 100644 index 00000000..c25558d5 --- /dev/null +++ b/.config/nvim/lua/configs/vimtex.lua @@ -0,0 +1,5 @@ +vim.g.tex_flavor='latex' +vim.g.vimtex_view_method='zathura' +vim.g.vimtex_quickfix_mode=0 +vim.opt.conceallevel = 1 +vim.g.tex_conceal='abdmg' |