aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2022-01-23 17:48:11 +0000
committerAnInternetTroll <lucafulger@gmail.com>2022-01-23 17:48:11 +0000
commitffefde9b4f0a02df8b25d9eb28d7ffbb9648b0e2 (patch)
tree9a6154e005c50ef5aa9c9b9b820f4f4a38ba601b /.config
parentb8821cb26c5d87386fb052ea279afbe467d232d3 (diff)
downloaddotfiles-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')
-rw-r--r--.config/nvim/lua/custom/chadrc.lua14
-rw-r--r--.config/nvim/lua/custom/init.lua55
2 files changed, 48 insertions, 21 deletions
diff --git a/.config/nvim/lua/custom/chadrc.lua b/.config/nvim/lua/custom/chadrc.lua
index bc4b88e..3880b87 100644
--- a/.config/nvim/lua/custom/chadrc.lua
+++ b/.config/nvim/lua/custom/chadrc.lua
@@ -2,7 +2,7 @@
-- This file is for NvChad options & tools, custom settings are split between here and 'lua/custom/init.lua'
local M = {}
-M.options, M.ui, M.mappings, M.plugins = {}, {}, {}, {}
+-- M.options, M.ui, M.mappings, M.plugins = {}, {}, {}, {}
-- NOTE: To use this, make a copy with `cp example_chadrc.lua chadrc.lua`
@@ -11,12 +11,16 @@ M.options, M.ui, M.mappings, M.plugins = {}, {}, {}, {}
-- To use this file, copy the structure of `core/default_config.lua`,
-- examples of setting relative number & changing theme:
--- M.options = {
--- relativenumber = true,
--- }
+M.options = {
+ relativenumber = true,
+ expandtab = false,
+ smartindent = false,
+ tabstop = 4,
+}
M.ui = {
- theme = "chadracula"
+ theme = "chadracula",
+ transparency = true,
}
-- NvChad included plugin options & overrides
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",