update
This commit is contained in:
@@ -3,8 +3,11 @@ require("config.keymap")
|
||||
require("config.run")
|
||||
require("plugins")
|
||||
|
||||
local lsp = "coc"
|
||||
|
||||
-- PLUGINS
|
||||
require("lazy").setup({
|
||||
{ import = "plugins." .. lsp },
|
||||
{ import = "plugins.treesitter" },
|
||||
{ import = "plugins.telescope" },
|
||||
{ import = "plugins.markdown" },
|
||||
@@ -16,17 +19,13 @@ require("lazy").setup({
|
||||
{ import = "plugins.nvim-tree" },
|
||||
{ import = "plugins.which-key" },
|
||||
{ import = "plugins.telescope" },
|
||||
{ import = "plugins.mason" }, -- or { import = "plugins.coc" }
|
||||
{ import = "plugins.omnisharp" },
|
||||
{ import = "plugins.lazydev" },
|
||||
{ import = "plugins.conform" },
|
||||
{ import = "plugins.cmp" },
|
||||
{ import = "plugins.catppuccin" },
|
||||
{ import = "plugins.barbar" },
|
||||
{ "luisiacc/gruvbox-baby" },
|
||||
{ "rebelot/kanagawa.nvim" },
|
||||
{ "Biscuit-Theme/biscuit" },
|
||||
{ "rose-pine/neovim" },
|
||||
{ import = "plugins.love2d" },
|
||||
{ "tpope/vim-sleuth" },
|
||||
{ "sitiom/nvim-numbertoggle" },
|
||||
{ "Bilal2453/luvit-meta" },
|
||||
|
||||
@@ -28,5 +28,5 @@ end
|
||||
|
||||
new_run_command("go run .", "go", "Run Go Project")
|
||||
new_run_command("cargo run", "rust", "Cargo run")
|
||||
new_run_command("python3 main.py", "python", "Run Python Project")
|
||||
new_run_command("dotnet run", "csharp", "Run Dotnet Project")
|
||||
new_run_command("uv run main.py", "python", "Run Python Project")
|
||||
new_run_command("dotnet run Project.cs", "cs", "Run Dotnet Project")
|
||||
|
||||
@@ -9,3 +9,4 @@ if not vim.uv.fs_stat(lazypath) then
|
||||
end
|
||||
end ---@diagnostic disable-next-line: undefined-field
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ return {
|
||||
"saghen/blink.cmp",
|
||||
},
|
||||
config = function()
|
||||
local util = require("lspconfig.util")
|
||||
-- Brief aside: **What is LSP?**
|
||||
--
|
||||
-- LSP is an initialism you've probably heard, but might not understand what it is.
|
||||
@@ -208,7 +209,7 @@ return {
|
||||
local servers = {
|
||||
-- clangd = {},
|
||||
-- gopls = {},
|
||||
-- pyright = {},
|
||||
pylsp = {},
|
||||
-- rust_analyzer = {},
|
||||
-- ... 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
|
||||
-- ts_ls = {},
|
||||
--
|
||||
|
||||
lua_ls = {
|
||||
-- cmd = { ... },
|
||||
-- filetypes = { ... },
|
||||
-- capabilities = {},
|
||||
root_dir = util.root_pattern("luarc.json", ".git", "main.lua", "init.lua"), -- <- force proper project root
|
||||
settings = {
|
||||
Lua = {
|
||||
completion = {
|
||||
callSnippet = "Replace",
|
||||
diagnostics = {
|
||||
globals = { "vim", "love" },
|
||||
},
|
||||
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
|
||||
-- diagnostics = { disable = { 'missing-fields' } },
|
||||
workspace = {
|
||||
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 = {},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user