added a few plugins
This commit is contained in:
parent
b79a146d37
commit
ee1fc7d291
4 changed files with 82 additions and 6 deletions
14
init.lua
14
init.lua
|
|
@ -1,16 +1,17 @@
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = ";"
|
||||||
|
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
|
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
require("mason-lspconfig").setup({
|
require("mason-lspconfig").setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"pylsp",
|
-- "pylsp",
|
||||||
"clangd",
|
"clangd",
|
||||||
"ols",
|
"ols",
|
||||||
"ts_ls",
|
"ts_ls",
|
||||||
"vue_ls",
|
"vue_ls",
|
||||||
"phpactor",
|
"phpactor",
|
||||||
|
"ty",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
require("mason-nvim-dap").setup({
|
require("mason-nvim-dap").setup({
|
||||||
|
|
@ -64,14 +65,19 @@ lspconfig("phpactor", {
|
||||||
cmd = {'phpactor', 'language-server'},
|
cmd = {'phpactor', 'language-server'},
|
||||||
filetypes = {'php'},
|
filetypes = {'php'},
|
||||||
})
|
})
|
||||||
lspenable("pylsp")
|
lspconfig("ty", {
|
||||||
|
on_attach = function(client, bufnr)
|
||||||
|
client.server_capabilities.semanticTokensProvider = nil
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
--lspenable("pylsp")
|
||||||
lspenable("clangd")
|
lspenable("clangd")
|
||||||
lspenable("ols")
|
lspenable("ols")
|
||||||
lspenable("ts_ls")
|
lspenable("ts_ls")
|
||||||
lspenable("vue_ls")
|
lspenable("vue_ls")
|
||||||
lspenable("glsl_analyzer")
|
lspenable("glsl_analyzer")
|
||||||
lspenable("phpactor")
|
lspenable("phpactor")
|
||||||
|
lspenable("ty")
|
||||||
|
|
||||||
local dap = require('dap')
|
local dap = require('dap')
|
||||||
dap.configurations.php = {
|
dap.configurations.php = {
|
||||||
|
|
|
||||||
48
init.lua.bak
Normal file
48
init.lua.bak
Normal 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
22
lua/plugins/csvview.lua
Normal 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" },
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
return {
|
return {
|
||||||
dir = "~/Development/langs/dragon/extensions/vim-dragon",
|
dir = "~/development/langs/dragon/extensions/vim-dragon",
|
||||||
ft = "dragon",
|
ft = "dragon",
|
||||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||||
config = function()
|
config = function()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue