This commit is contained in:
wooshdude
2025-06-01 19:29:21 -07:00
parent d77e1e38eb
commit de9976f224
4 changed files with 32 additions and 15 deletions
+4 -5
View File
@@ -3,8 +3,11 @@ require("config.keymap")
require("config.run") require("config.run")
require("plugins") require("plugins")
local lsp = "coc"
-- PLUGINS -- PLUGINS
require("lazy").setup({ require("lazy").setup({
{ import = "plugins." .. lsp },
{ import = "plugins.treesitter" }, { import = "plugins.treesitter" },
{ import = "plugins.telescope" }, { import = "plugins.telescope" },
{ import = "plugins.markdown" }, { import = "plugins.markdown" },
@@ -16,17 +19,13 @@ require("lazy").setup({
{ import = "plugins.nvim-tree" }, { import = "plugins.nvim-tree" },
{ import = "plugins.which-key" }, { import = "plugins.which-key" },
{ import = "plugins.telescope" }, { import = "plugins.telescope" },
{ import = "plugins.mason" }, -- or { import = "plugins.coc" }
{ import = "plugins.omnisharp" }, { import = "plugins.omnisharp" },
{ import = "plugins.lazydev" }, { import = "plugins.lazydev" },
{ import = "plugins.conform" }, { import = "plugins.conform" },
{ import = "plugins.cmp" }, { import = "plugins.cmp" },
{ import = "plugins.catppuccin" }, { import = "plugins.catppuccin" },
{ import = "plugins.barbar" }, { import = "plugins.barbar" },
{ "luisiacc/gruvbox-baby" }, { import = "plugins.love2d" },
{ "rebelot/kanagawa.nvim" },
{ "Biscuit-Theme/biscuit" },
{ "rose-pine/neovim" },
{ "tpope/vim-sleuth" }, { "tpope/vim-sleuth" },
{ "sitiom/nvim-numbertoggle" }, { "sitiom/nvim-numbertoggle" },
{ "Bilal2453/luvit-meta" }, { "Bilal2453/luvit-meta" },
+2 -2
View File
@@ -28,5 +28,5 @@ end
new_run_command("go run .", "go", "Run Go Project") new_run_command("go run .", "go", "Run Go Project")
new_run_command("cargo run", "rust", "Cargo run") new_run_command("cargo run", "rust", "Cargo run")
new_run_command("python3 main.py", "python", "Run Python Project") new_run_command("uv run main.py", "python", "Run Python Project")
new_run_command("dotnet run", "csharp", "Run Dotnet Project") new_run_command("dotnet run Project.cs", "cs", "Run Dotnet Project")
+1
View File
@@ -9,3 +9,4 @@ if not vim.uv.fs_stat(lazypath) then
end end
end ---@diagnostic disable-next-line: undefined-field end ---@diagnostic disable-next-line: undefined-field
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
+25 -8
View File
@@ -17,6 +17,7 @@ return {
"saghen/blink.cmp", "saghen/blink.cmp",
}, },
config = function() config = function()
local util = require("lspconfig.util")
-- Brief aside: **What is LSP?** -- Brief aside: **What is LSP?**
-- --
-- LSP is an initialism you've probably heard, but might not understand what it is. -- LSP is an initialism you've probably heard, but might not understand what it is.
@@ -208,7 +209,7 @@ return {
local servers = { local servers = {
-- clangd = {}, -- clangd = {},
-- gopls = {}, -- gopls = {},
-- pyright = {}, pylsp = {},
-- rust_analyzer = {}, -- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
-- --
@@ -218,20 +219,36 @@ return {
-- But for many setups, the LSP (`ts_ls`) will work just fine -- But for many setups, the LSP (`ts_ls`) will work just fine
-- ts_ls = {}, -- ts_ls = {},
-- --
lua_ls = { lua_ls = {
-- cmd = { ... }, -- cmd = { ... },
-- filetypes = { ... }, -- filetypes = { ... },
-- capabilities = {}, root_dir = util.root_pattern("luarc.json", ".git", "main.lua", "init.lua"), -- <- force proper project root
settings = { settings = {
Lua = { Lua = {
completion = { diagnostics = {
callSnippet = "Replace", globals = { "vim", "love" },
}, },
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings workspace = {
-- diagnostics = { disable = { 'missing-fields' } }, checkThirdParty = false,
maxPreload = 2000, -- Reduce preload size
preloadFileSize = 1000, -- Ignore big files
library = {
vim.env.VIMRUNTIME,
},
ignoreDir = { -- Add folders to ignore
"node_modules",
".git",
".vscode",
"build",
"dist",
},
},
telemetry = {
enable = false,
},
library = { "${3rd}/love2d/library" },
}, },
}, }, -- capabilities = {},
}, },
} }