added a few plugins

This commit is contained in:
rocketdebris 2026-10-21 12:04:03 -04:00
parent b79a146d37
commit ee1fc7d291
4 changed files with 82 additions and 6 deletions

View file

@ -1,16 +1,17 @@
vim.g.mapleader = " "
vim.g.mapleader = ";"
require("config.lazy")
require("mason").setup()
require("mason-lspconfig").setup({
ensure_installed = {
"pylsp",
-- "pylsp",
"clangd",
"ols",
"ts_ls",
"vue_ls",
"phpactor",
"ty",
},
})
require("mason-nvim-dap").setup({
@ -37,7 +38,7 @@ vim.keymap.set("v", "<Leader>x", ":lua<CR>")
vim.api.nvim_set_keymap('t', '<ESC>', [[<C-\><C-n>]], {noremap = true})
-- vim.api.nvim_set_keymap('i', '<C-k>', [[<C-x><C-o>]], {noremap = true})
vim.keymap.set('v', '<C-Space>', '<Nop>', { desc = 'Stop Ctrl+Space from acting as W' })
vim.keymap.set('n', '<C-Space>', function()
vim.keymap.set('n', '<C-Space>', function()
vim.cmd('startinsert')
require('blink.cmp').show()
end)
@ -64,14 +65,19 @@ lspconfig("phpactor", {
cmd = {'phpactor', 'language-server'},
filetypes = {'php'},
})
lspenable("pylsp")
lspconfig("ty", {
on_attach = function(client, bufnr)
client.server_capabilities.semanticTokensProvider = nil
end,
})
--lspenable("pylsp")
lspenable("clangd")
lspenable("ols")
lspenable("ts_ls")
lspenable("vue_ls")
lspenable("glsl_analyzer")
lspenable("phpactor")
lspenable("ty")
local dap = require('dap')
dap.configurations.php = {

48
init.lua.bak Normal file
View file

@ -0,0 +1,48 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup("plugins")
require("mason").setup()
require("mason-lspconfig").setup({
ensure_installed = {
"pylsp",
"clangd",
"gopls",
-- "dcm",
"ols",
},
})
-- My user settings:
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.shiftwidth = 4
vim.opt.tabstop = 4
--vim.opt.expandtab = true
vim.opt.autoindent = true
vim.opt.foldmethod = "indent"
vim.opt.foldenable = false
vim.cmd([[colorscheme everforest]])
-- My custom keybinds
-- vim.keymap.set("n", "<space><space>x", "<cmd>source %<CR>") -- Can't do this with lazy.nvim apparently
vim.keymap.set("n", "<space>x", ":.lua<CR>")
vim.keymap.set("v", "<space>x", ":lua<CR>")
vim.api.nvim_set_keymap('t', '<ESC>', [[<C-\><C-n>]], {noremap = true})
local lspconfig = require('lspconfig')
lspconfig.pylsp.setup{}
lspconfig.clangd.setup{}
lspconfig.gopls.setup{}
--lspconfig.dcm.setup{}
lspconfig.ols.setup{}

22
lua/plugins/csvview.lua Normal file
View file

@ -0,0 +1,22 @@
return {
"hat0uma/csvview.nvim",
---@module "csvview"
---@type CsvView.Options
opts = {
parser = { comments = { "#", "//" } },
keymaps = {
-- Text objects for selecting fields
textobject_field_inner = { "if", mode = { "o", "x" } },
textobject_field_outer = { "af", mode = { "o", "x" } },
-- Excel-like navigation:
-- Use <Tab> and <S-Tab> to move horizontally between fields.
-- Use <Enter> and <S-Enter> to move vertically between rows and place the cursor at the end of the field.
-- Note: In terminals, you may need to enable CSI-u mode to use <S-Tab> and <S-Enter>.
jump_next_field_end = { "<Tab>", mode = { "n", "v" } },
jump_prev_field_end = { "<S-Tab>", mode = { "n", "v" } },
jump_next_row = { "<Enter>", mode = { "n", "v" } },
jump_prev_row = { "<S-Enter>", mode = { "n", "v" } },
},
},
cmd = { "CsvViewEnable", "CsvViewDisable", "CsvViewToggle" },
}

View file

@ -1,5 +1,5 @@
return {
dir = "~/Development/langs/dragon/extensions/vim-dragon",
dir = "~/development/langs/dragon/extensions/vim-dragon",
ft = "dragon",
dependencies = { "nvim-treesitter/nvim-treesitter" },
config = function()