Compare commits

...

11 Commits

Author SHA1 Message Date
guy176251 6e13a400b1 added java/kotlin 2026-07-01 14:15:30 -05:00
guy176251 abb12585de Configured mason for auto-installation (currently does not work)
- added dockerfile treesitter
2026-05-18 04:54:10 -05:00
guy176251 74b676c66c added php *shudders* 2026-05-14 01:56:19 -05:00
guy176251 6da322cd95 added some filetypes 2026-05-14 01:53:03 -05:00
Long Nguyen 054650c5dc fixed filetype handling 2026-05-13 21:19:41 -05:00
Long Nguyen 273fa8f461 added treesitter startup code 2026-05-13 20:59:22 -05:00
Long Nguyen aa6b7ab1ea WIP on new treesitter init 2026-05-13 18:38:16 -05:00
guy176251 bcea7e49c0 long overdue update for nvim 0.12 2026-05-13 01:24:41 -05:00
guy176251 4ef55c7feb added go snippets to templ 2026-01-25 13:04:44 -06:00
Long Nguyen 4877cb4e0b added roslyn csharp lsp 2025-09-17 12:18:53 -05:00
guy176251 6ac6d697dd upgraded rustaceanvim to version 6 2025-07-03 22:46:14 -05:00
4 changed files with 100 additions and 42 deletions
+44 -2
View File
@@ -156,7 +156,7 @@ function M.lualine()
return tab_mode()
end,
max_length = function()
return columns(1)
return columns(5)
end,
},
},
@@ -266,6 +266,48 @@ function M.nvim_treesitter()
end
end
function M.nvim_treesitter_new()
local ts = require("nvim-treesitter")
local install_langs = {
"angular",
"bash",
"css",
"glimmer",
"go",
"html",
"javascript",
"json",
"lua",
"markdown",
"python",
"query",
"rust",
"svelte",
"templ",
"tsx",
"typescript",
"vim",
"yaml",
"toml",
"php",
"dockerfile",
"java",
"kotlin",
}
local run_langs = vim.tbl_extend("force", install_langs, {
"htmlangular",
"sh",
})
ts.setup()
ts.install(install_langs)
vim.api.nvim_create_autocmd("FileType", {
pattern = run_langs,
callback = function()
vim.treesitter.start()
end,
})
end
function M.null_ls()
local null_ls = require("null-ls")
local builtins = require("plugins.null_ls")
@@ -397,7 +439,7 @@ end
function M.luasnip()
local luasnip = require("luasnip")
--luasnip.filetype_extend("htmldjango", { "html" })
luasnip.filetype_extend("templ", { "html" })
luasnip.filetype_extend("templ", { "html", "go" })
luasnip.filetype_extend("handlebars", { "html" })
require("luasnip.loaders.from_snipmate").lazy_load()
end
+6 -8
View File
@@ -4,7 +4,6 @@ local config = require("plugins.config")
package_manager.bootstrap()
package_manager.install_plugins()
-- KEEPING
config.rnvimr()
config.fzf()
config.fzf_checkout()
@@ -14,16 +13,15 @@ config.auto_session()
config.undotree()
config.indent_blankline()
config.lualine()
config.nvim_treesitter()
config.nvim_treesitter_new()
config.tokyonight()
-- UPDATING
config.hop()
config.rustaceanvim()
-- LSP STUFF
config.nvim_autopairs()
config.luasnip()
require("plugins.lsp_setup")
config.null_ls()
config.tailwind_tools()
-- DEPRECATED/DEAD/OLD
--config.hop()
--config.tailwind_tools()
--config.nvim_treesitter()
+15 -13
View File
@@ -22,7 +22,7 @@ function M.install_plugins()
require("lazy").setup({
spec = {
-- NAVIGATION
"phaazon/hop.nvim",
--"smoka7/hop.nvim",
-- VIM THEMING
"folke/tokyonight.nvim",
@@ -53,11 +53,12 @@ function M.install_plugins()
-- LSP
{
"nvim-treesitter/nvim-treesitter",
--"nvim-treesitter/nvim-treesitter",
"guy176251/nvim-treesitter",
build = ":TSUpdate",
lazy = false,
},
"nvim-treesitter/nvim-treesitter-context",
"nvim-treesitter/playground",
"nvimtools/none-ls.nvim",
"windwp/nvim-autopairs",
"neovim/nvim-lspconfig",
@@ -87,20 +88,21 @@ function M.install_plugins()
-- RUST
{
"mrcjkb/rustaceanvim",
version = "^5", -- Recommended
version = "^6", -- Recommended
lazy = false, -- This plugin is already lazy
},
-- TAILWIND
{
"luckasRanarison/tailwind-tools.nvim",
name = "tailwind-tools",
build = ":UpdateRemotePlugins",
dependencies = {
"nvim-treesitter/nvim-treesitter",
"neovim/nvim-lspconfig", -- optional
},
},
-- deprecated
--{
-- "luckasRanarison/tailwind-tools.nvim",
-- name = "tailwind-tools",
-- build = ":UpdateRemotePlugins",
-- dependencies = {
-- "nvim-treesitter/nvim-treesitter",
-- "neovim/nvim-lspconfig", -- optional
-- },
--},
-- LUA
{
+35 -19
View File
@@ -138,25 +138,7 @@ cmp.setup({
mapping = cmp.mapping.preset.insert(mapping),
})
require("mason").setup()
local html_filetypes = { "html", "templ", "htmldjango" }
vim.lsp.config("ts_ls", {
settings = {
implicitProjectConfiguration = {
--checkJs = true,
experimentalDecorators = true,
},
},
})
vim.lsp.config("html", {
filetypes = html_filetypes,
})
vim.lsp.enable({
"angular-language-server",
local lsps = {
"bashls",
"clangd",
"cssls",
@@ -172,4 +154,38 @@ vim.lsp.enable({
"templ",
"ts_ls",
"zls",
"csharp_ls",
"intelephense",
"php-cs-fixer",
}
local local_lsp_configs = {
"angular-language-server",
}
require("mason").setup({
ensure_installed = lsps,
automatic_installation = true,
automatic_enable = false,
registries = {
"github:mason-org/mason-registry",
"github:Crashdummyy/mason-registry",
},
})
local html_filetypes = { "html", "templ", "htmldjango" }
vim.lsp.config("ts_ls", {
settings = {
implicitProjectConfiguration = {
checkJs = true,
experimentalDecorators = true,
},
},
})
vim.lsp.config("html", {
filetypes = html_filetypes,
})
vim.lsp.enable(vim.tbl_extend("force", lsps, local_lsp_configs))