From ffefde9b4f0a02df8b25d9eb28d7ffbb9648b0e2 Mon Sep 17 00:00:00 2001 From: AnInternetTroll Date: Sun, 23 Jan 2022 18:48:11 +0100 Subject: nvchad stuff --- .config/nvim/lua/custom/init.lua | 55 ++++++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 16 deletions(-) (limited to '.config/nvim/lua/custom/init.lua') diff --git a/.config/nvim/lua/custom/init.lua b/.config/nvim/lua/custom/init.lua index 473ff84..fdc222b 100644 --- a/.config/nvim/lua/custom/init.lua +++ b/.config/nvim/lua/custom/init.lua @@ -1,6 +1,7 @@ -- This is where your custom modules and plugins go. -- See the wiki for a guide on how to extend NvChad local hooks = require "core.hooks" +vim.g.did_load_filetypes = 1 vim.api.nvim_command("nnoremap :m .+1==") vim.api.nvim_command("nnoremap :m .-2==") vim.api.nvim_command("inoremap :m .+1==gi") @@ -46,7 +47,12 @@ hooks.add("install_plugins", function(use) local opts = {} if server.name == "denols" then - opts.root_dir = vim.loop.cwd + opts.root_dir = vim.loop.cwd + opts.init_options = { + enable = true, + lint = true, + unstable = true, + } end server:setup(opts) @@ -54,21 +60,38 @@ hooks.add("install_plugins", function(use) end) end, } - -- Custom stuff - use { "nathom/filetype.nvim" } - - use { - "karb94/neoscroll.nvim", - opt = true, - config = function() - require("neoscroll").setup() - end, - - -- lazy loading - setup = function() - require("core.utils").packer_lazy_load "neoscroll.nvim" - end, - } + use { + "jose-elias-alvarez/null-ls.nvim", + after = "nvim-lspconfig", + config = function() + local null_ls = require("null-ls") + null_ls.setup({ + sources = { + null_ls.builtins.formatting.deno_fmt + } + }) + end, + } + + -- use { "umaumax/vim-lcov" } + + use { "google/vim-maktaba" } + use { "google/vim-coverage" } + + use { "nathom/filetype.nvim" } + + use { + "karb94/neoscroll.nvim", + opt = true, + config = function() + require("neoscroll").setup() + end, + + -- lazy loading + setup = function() + require("core.utils").packer_lazy_load "neoscroll.nvim" + end, + } use { "prettier/vim-prettier", -- cgit v1.2.3