diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2022-01-23 17:48:11 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2022-01-23 17:48:11 +0000 |
commit | ffefde9b4f0a02df8b25d9eb28d7ffbb9648b0e2 (patch) | |
tree | 9a6154e005c50ef5aa9c9b9b820f4f4a38ba601b /.config/nvim/lua/custom/init.lua | |
parent | b8821cb26c5d87386fb052ea279afbe467d232d3 (diff) | |
download | dotfiles-ffefde9b4f0a02df8b25d9eb28d7ffbb9648b0e2.tar dotfiles-ffefde9b4f0a02df8b25d9eb28d7ffbb9648b0e2.tar.gz dotfiles-ffefde9b4f0a02df8b25d9eb28d7ffbb9648b0e2.tar.bz2 dotfiles-ffefde9b4f0a02df8b25d9eb28d7ffbb9648b0e2.tar.lz dotfiles-ffefde9b4f0a02df8b25d9eb28d7ffbb9648b0e2.tar.xz dotfiles-ffefde9b4f0a02df8b25d9eb28d7ffbb9648b0e2.tar.zst dotfiles-ffefde9b4f0a02df8b25d9eb28d7ffbb9648b0e2.zip |
nvchad stuff
Diffstat (limited to '.config/nvim/lua/custom/init.lua')
-rw-r--r-- | .config/nvim/lua/custom/init.lua | 55 |
1 files changed, 39 insertions, 16 deletions
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 <A-j> :m .+1<CR>==") vim.api.nvim_command("nnoremap <A-k> :m .-2<CR>==") vim.api.nvim_command("inoremap <A-j> <Esc>:m .+1<CR>==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", |