FEAT: Loads of very cool stuff
This commit is contained in:
@@ -1,52 +0,0 @@
|
||||
local M = {}
|
||||
local override = require "custom.override"
|
||||
|
||||
M.plugins = {
|
||||
user = require "custom.plugins",
|
||||
status = {
|
||||
dashboard = true,
|
||||
alpha = true,
|
||||
},
|
||||
override = {
|
||||
["lewis6991/gitsigns.nvim"] = {
|
||||
signcolumn = true,
|
||||
},
|
||||
["NvChad/ui"] = {
|
||||
tabufline = {
|
||||
enabled = true,
|
||||
lazyload = true,
|
||||
},
|
||||
},
|
||||
["williamboman/mason"] = override.mason,
|
||||
["nvim-treesitter/nvim-treesitter"] = {
|
||||
autotag = {
|
||||
enable = true,
|
||||
}
|
||||
},
|
||||
},
|
||||
options = {
|
||||
lspconfig = {
|
||||
setup_lspconf = "custom.plugins.lspconfig",
|
||||
},
|
||||
},
|
||||
}
|
||||
M.options = {
|
||||
user = function()
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.softtabstop = 2
|
||||
vim.opt.shiftwidth = 2
|
||||
end
|
||||
}
|
||||
M.ui = {
|
||||
theme = "kanagawa",
|
||||
theme_toggle = {"everforest", "everforest_light"},
|
||||
lazyload = false,
|
||||
}
|
||||
|
||||
M.mappings = require "custom.mappings"
|
||||
vim.cmd('autocmd BufRead,BufEnter *.astro set filetype=astro')
|
||||
vim.cmd('set rnu')
|
||||
vim.cmd('autocmd InsertLeave *.tex update')
|
||||
|
||||
|
||||
return M
|
||||
@@ -1,39 +0,0 @@
|
||||
local M = {}
|
||||
|
||||
M.formatter = {
|
||||
n = {
|
||||
["<Leader>fq"] = {"<cmd> Neoformat<CR>", "Formatted :)"},
|
||||
["<Leader>b"] = {"<cmd> Gitsigns toggle_current_line_blame<CR>", "Toggled line blames"},
|
||||
["<Leader>bl"] = {"<cmd> Gitsigns blame_line<CR>", "Line blame"}
|
||||
}
|
||||
}
|
||||
|
||||
M.nvimtree = {
|
||||
n = {
|
||||
-- focus
|
||||
["<leader>e"] = { "<cmd> NvimTreeFocus <CR>", "focus nvimtree" },
|
||||
["<leader>co"] = {"<cmd> NvimTreeCollapse <CR>", "Collapse nvimtree"},
|
||||
},
|
||||
}
|
||||
|
||||
M.diffview = {
|
||||
n = {
|
||||
["<leader>df"] = {"<cmd> DiffviewOpen <CR>", "Open git view"},
|
||||
["<leader>dr"] = {"<cmd> DiffviewRefresh <CR>", "Open git view"},
|
||||
}
|
||||
}
|
||||
|
||||
M.custom = {
|
||||
n = {
|
||||
["<leader>nt"] = {"<cmd> tabnew <CR>", "New tab"},
|
||||
["<leader>ct"] = {"<cmd> tabclose <CR>", "Close tab"},
|
||||
["<leader>rf"] = {":lua require('refactoring').select_refactor()<CR>", "options"},
|
||||
["<leader>q"] = {":lua require('harpoon.mark').add_file()<CR>"},
|
||||
["<leader>fm"] = {":lua require('harpoon.ui').toggle_quick_menu()<CR>"},
|
||||
},
|
||||
v = {
|
||||
["<leader>rf"] = {":lua require('refactoring').select_refactor()<CR>", "options"},
|
||||
}
|
||||
}
|
||||
|
||||
return M
|
||||
@@ -1,9 +0,0 @@
|
||||
local M = {}
|
||||
M.mason = {
|
||||
ensure_installed = {
|
||||
"typescript-language-server",
|
||||
"tailwindcss-language-server",
|
||||
"eslint-lsp"
|
||||
}
|
||||
}
|
||||
return M
|
||||
@@ -1,27 +0,0 @@
|
||||
return {
|
||||
["wakatime/vim-wakatime"] = {},
|
||||
["sbdchd/neoformat"] = {},
|
||||
["williamboman/mason-lspconfig.nvim"] = {},
|
||||
["neovim/nvim-lspconfig"] = {
|
||||
config = function ()
|
||||
require "plugins.configs.lspconfig"
|
||||
require "custom.plugins.lspconfig"
|
||||
end
|
||||
},
|
||||
["windwp/nvim-ts-autotag"] = {
|
||||
ft = { "html", "javascriptreact", "typescriptreact", "astro"},
|
||||
after = "nvim-treesitter",
|
||||
config = function()
|
||||
local present, autotag = pcall(require, "nvim-ts-autotag")
|
||||
|
||||
if present then
|
||||
autotag.setup()
|
||||
end
|
||||
end
|
||||
},
|
||||
["lervag/vimtex"] = {},
|
||||
["sindrets/diffview.nvim"] = {},
|
||||
["ThePrimeagen/refactoring.nvim"] = {},
|
||||
["ThePrimeagen/harpoon"] = {},
|
||||
["christoomey/vim-tmux-navigator"] = {},
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
local on_attach = require("plugins.configs.lspconfig").on_attach
|
||||
local capabilities = require("plugins.configs.lspconfig").capabilities
|
||||
|
||||
local lspconfig = require("lspconfig")
|
||||
local servers = {"tailwindcss", "eslint", "cssls", "prismals", "gopls", "dockerls", "yamlls", "hls", "dafny"}
|
||||
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig[lsp].setup({
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
lspconfig.dafny.setup {
|
||||
on_attach = on_attach,
|
||||
root_dir = lspconfig.util.root_pattern("*.dfy"),
|
||||
}
|
||||
|
||||
lspconfig.denols.setup {
|
||||
on_attach = on_attach,
|
||||
root_dir = lspconfig.util.root_pattern("deno.json", "deno.jsonc"),
|
||||
}
|
||||
|
||||
lspconfig.tsserver.setup {
|
||||
on_attach = on_attach,
|
||||
root_dir = lspconfig.util.root_pattern("package.json"),
|
||||
single_file_support = false,
|
||||
enable = false,
|
||||
}
|
||||
Reference in New Issue
Block a user