Skip to content

Commit

Permalink
raddbg ipc stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
wrapperup committed Jan 26, 2025
1 parent 00a9557 commit 71a534b
Show file tree
Hide file tree
Showing 6 changed files with 262 additions and 90 deletions.
30 changes: 0 additions & 30 deletions init.lua
Original file line number Diff line number Diff line change
@@ -1,31 +1 @@
require("wrap")

vim.opt.nu = true
vim.opt.relativenumber = true

vim.opt.splitbelow = true
vim.opt.splitright = true

vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true

vim.opt.smartindent = true

vim.opt.wrap = false

vim.opt.hlsearch = false
vim.opt.incsearch = true

vim.opt.termguicolors = true

vim.opt.scrolloff = 8
vim.opt.signcolumn = "yes"
vim.opt.isfname:append("@-@")

vim.opt.updatetime = 50

vim.g.netrw_browse_split = 0
vim.g.netrw_banner = 0
vim.g.netrw_winsize = 25
42 changes: 42 additions & 0 deletions lua/wrap/init.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,39 @@
vim.opt.nu = true
vim.opt.relativenumber = true

vim.opt.splitbelow = true
vim.opt.splitright = true

vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true

vim.opt.smartindent = true

vim.opt.wrap = false

vim.opt.hlsearch = false
vim.opt.incsearch = true

vim.opt.termguicolors = true

vim.opt.scrolloff = 8
vim.opt.signcolumn = "yes"
vim.opt.isfname:append("@-@")

vim.opt.updatetime = 50

vim.g.netrw_browse_split = 0
vim.g.netrw_banner = 0
vim.g.netrw_winsize = 25

vim.g.b = {case_labels = 0}

require("wrap.lazy")

local my_group = vim.api.nvim_create_augroup("my-group", { clear = true })

vim.g.netrw_browse_split = 0
vim.g.netrw_banner = 0
vim.g.netrw_winsize = 25
Expand Down Expand Up @@ -57,7 +89,17 @@ if vim.g.neovide then
vim.g.neovide_cursor_vfx_mode = ""
end

vim.api.nvim_create_autocmd("TermOpen", {
group = my_group,
callback = function()
vim.wo.number = false
vim.wo.relativenumber = false
vim.wo.signcolumn = "no"
end
})

require("wrap.remaps")
require("wrap.theme")
require("wrap.lsp")
require("wrap.setup")
require("wrap.raddbg")
51 changes: 20 additions & 31 deletions lua/wrap/lazy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if not vim.loop.fs_stat(lazypath) then
end
vim.opt.rtp:prepend(lazypath)

require('lazy').setup({
require("lazy").setup({
-- theme
{
"rose-pine/neovim",
Expand All @@ -30,7 +30,7 @@ require('lazy').setup({
end,
})

vim.cmd('colorscheme rose-pine')
vim.cmd("colorscheme rose-pine")
end
},

Expand All @@ -45,7 +45,7 @@ require('lazy').setup({
end
},

{ 'NMAC427/guess-indent.nvim' },
{ "NMAC427/guess-indent.nvim" },

-- syntax highlighting
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
Expand All @@ -57,21 +57,31 @@ require('lazy').setup({
dependencies = { "nvim-lua/plenary.nvim" }
},

{ 'stevearc/oil.nvim' },
-- the goat
{ "stevearc/oil.nvim" },
{ "stevearc/conform.nvim" },
{ "stevearc/overseer.nvim" },
{
'stevearc/quicker.nvim',
event = "FileType qf",
---@module "quicker"
---@type quicker.SetupOptions
opts = {},
},

{
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
},

{ 'echasnovski/mini.comment', version = false },
{ "echasnovski/mini.comment", version = false },

-- lsp
{ "neovim/nvim-lspconfig" },
{ "hrsh7th/cmp-nvim-lsp" },
{ "hrsh7th/nvim-cmp" },
-- { "L3MON4D3/LuaSnip" },
{ "L3MON4D3/LuaSnip" },
{ "williamboman/mason.nvim" },
{ "williamboman/mason-lspconfig.nvim" },

Expand Down Expand Up @@ -129,13 +139,13 @@ require('lazy').setup({

-- status line
{
'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
event = "VeryLazy",
},

{
'ThePrimeagen/harpoon',
"ThePrimeagen/harpoon",
event = "VeryLazy",
},

Expand All @@ -146,29 +156,8 @@ require('lazy').setup({
build = function() vim.fn["mkdp#util#install"]() end,
},

-- formatting
{
'stevearc/conform.nvim',
event = "VeryLazy",
opts = {},
},

-- {
-- "nvimdev/hlsearch.nvim",
-- event = 'BufRead',
-- config = function()
-- require('hlsearch').setup()
-- end
-- },

{
'stevearc/overseer.nvim',
event = "VeryLazy",
opts = {},
},

{
'rluba/jai.vim',
"rluba/jai.vim",
init = function ()
vim.g.b = {case_labels = 0}
end
Expand Down
45 changes: 28 additions & 17 deletions lua/wrap/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,28 +100,14 @@ cmp.setup({
},
})

-- lsp.on_attach(function(client, bufnr)
-- lsp.default_keymaps({ buffer = bufnr })
-- require "lsp_signature".on_attach({
-- floating_window = false,
-- }, bufnr)
-- end)
--
-- lsp.set_sign_icons({
-- error = '',
-- warn = '',
-- hint = '',
-- info = '󰋼'
-- })

require("conform").setup({
require("conform").setup {
formatters_by_ft = {
html = { "dprint" },
vto = { "dprint" },
vento = { "dprint" },
jinja = { "dprint" },
},
})
}

require("mason").setup()

Expand All @@ -141,7 +127,32 @@ lspconfig.ts_ls.setup {
single_file_support = false
}

lspconfig.lua_ls.setup({})
lspconfig.lua_ls.setup {
settings = {
Lua = {
runtime = {
-- Tell the language server which version of Lua you're using
-- (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT',
},
diagnostics = {
-- Get the language server to recognize the `vim` global
globals = {
'vim',
'require'
},
},
workspace = {
-- Make the server aware of Neovim runtime files
library = vim.api.nvim_get_runtime_file("", true),
},
-- Do not send telemetry data containing a randomized but unique identifier
telemetry = {
enable = false,
},
},
},
}

lspconfig.rust_analyzer.setup {
settings = {
Expand Down
Loading

0 comments on commit 71a534b

Please sign in to comment.