Remove plugin and add tsc compiler

This commit is contained in:
Saeed Afzal
2025-03-12 13:50:37 +00:00
parent e2a7438807
commit 626db96425
6 changed files with 8 additions and 16 deletions

3
.gitmodules vendored
View File

@@ -7,6 +7,3 @@
[submodule "pack/vendor/start/neogit"] [submodule "pack/vendor/start/neogit"]
path = pack/vendor/start/neogit path = pack/vendor/start/neogit
url = https://github.com/NeogitOrg/neogit.git url = https://github.com/NeogitOrg/neogit.git
[submodule "pack/vendor/start/vimwiki"]
path = pack/vendor/start/vimwiki
url = https://github.com/vimwiki/vimwiki.git

View File

@@ -1,9 +1,6 @@
-- Core configuration -- Core configuration
require "core" require "core"
-- Plugin configuration
require "plugins"
-- Theme -- Theme
vim.cmd [[ vim.cmd [[
hi Normal guibg=none hi Normal guibg=none

View File

@@ -1,17 +1,17 @@
local api = vim.api local api = vim.api
api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, { api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "*.rs" }, pattern = "*.rs",
command = "compiler cargo" command = "compiler cargo"
}) })
api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, { api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "*.go" }, pattern = "*.go",
command = "Tabs 4" command = "Tabs 4"
}) })
api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, { api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "*.dart" }, pattern = "*.dart",
callback = function() callback = function()
vim.cmd [[Spaces 2]] vim.cmd [[Spaces 2]]
vim.cmd [[compiler dart]] vim.cmd [[compiler dart]]
@@ -22,3 +22,8 @@ api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = "*.md", pattern = "*.md",
command = "set conceallevel=3" command = "set conceallevel=3"
}) })
api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "*.ts", "*.tsc" },
command = "compiler tsc"
})

View File

@@ -1 +0,0 @@
require "plugins.vimwiki"

View File

@@ -1,5 +0,0 @@
local g = vim.g
g.vimwiki_list = {
{ path = "~/Documents/Notes/vimwiki", index = "index" }
}