idk
This commit is contained in:
1 parent
8fd4917480
commit
69f23e1384
7 files changed
+59
-51
No files matched your search
@@ -1,5 +1,6 @@
|
|||||||
vim.filetype.add({
|
vim.filetype.add({
|
||||||
extension = {
|
extension = {
|
||||||
wgsl = 'wgsl',
|
wgsl = 'wgsl',
|
||||||
|
slint = 'slint',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
+21
-7
@@ -5,6 +5,7 @@ local g = vim.g
|
|||||||
o.number = true
|
o.number = true
|
||||||
o.showmode = false
|
o.showmode = false
|
||||||
o.clipboard = "unnamedplus"
|
o.clipboard = "unnamedplus"
|
||||||
|
o.undofile = true
|
||||||
|
|
||||||
g.mapleader = " "
|
g.mapleader = " "
|
||||||
g.maplocalleader = ","
|
g.maplocalleader = ","
|
||||||
@@ -33,17 +34,30 @@ else
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- diagnostics
|
-- diagnostics
|
||||||
local signs = { Error = " ", Warn = " ", Hint = "", Info = " " }
|
local sev = vim.diagnostic.severity
|
||||||
for type, icon in pairs(signs) do
|
local text = {
|
||||||
local hl = "DiagnosticSign" .. type
|
[sev.ERROR] = " ",
|
||||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
[sev.WARN] = " ",
|
||||||
end
|
[sev.HINT] = "",
|
||||||
|
[sev.INFO] = " ",
|
||||||
|
}
|
||||||
|
local hl = {
|
||||||
|
[sev.ERROR] = "DiagnosticSignError",
|
||||||
|
[sev.WARN] = "DiagnosticSignWarn",
|
||||||
|
[sev.HINT] = "DiagnosticSignHint",
|
||||||
|
[sev.INFO] = "DiagnosticSignInfo",
|
||||||
|
}
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
virtual_text = { prefix = "●" },
|
virtual_text = { prefix = "●" },
|
||||||
|
signs = {
|
||||||
|
text = text,
|
||||||
|
numhl = hl,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- neovide
|
-- neovide
|
||||||
if vim.g.neovide then
|
if vim.g.neovide then
|
||||||
|
vim.g.transparency = 0.8
|
||||||
|
vim.g.neovide_transparency = 0.8
|
||||||
|
vim.g.neovide_background_color = "#1e1e2a"
|
||||||
end
|
end
|
||||||
+11
-17
@@ -1,22 +1,7 @@
|
|||||||
local rt_config = function()
|
|
||||||
local rt = require "rust-tools"
|
|
||||||
rt.setup {
|
|
||||||
server = {
|
|
||||||
-- on_attach = function(_, bufnr)
|
|
||||||
-- vim.keymap.set("n", "<C-k>", rt.hover_actions.hover_actions, { buffer = bufnr })
|
|
||||||
-- vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
|
|
||||||
-- end
|
|
||||||
}
|
|
||||||
}
|
|
||||||
end
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"simrat39/rust-tools.nvim",
|
"mrcjkb/rustaceanvim",
|
||||||
dependencies = {
|
ft = { "rust" },
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
"mfussenegger/nvim-dap",
|
|
||||||
},
|
|
||||||
config = rt_config
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
@@ -33,4 +18,13 @@ return {
|
|||||||
"mfussenegger/nvim-jdtls",
|
"mfussenegger/nvim-jdtls",
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
"folke/neodev.nvim",
|
"folke/neodev.nvim",
|
||||||
|
{
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
config = function() require "mason".setup {} end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"williamboman/mason-lspconfig.nvim",
|
||||||
|
dependencies = { "williamboman/mason.nvim" },
|
||||||
|
config = function() require "mason-lspconfig" end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
@@ -50,6 +50,7 @@ local config = function()
|
|||||||
}
|
}
|
||||||
c.wgsl_analyzer.setup {}
|
c.wgsl_analyzer.setup {}
|
||||||
c.hls.setup {}
|
c.hls.setup {}
|
||||||
|
c.slint_lsp.setup {}
|
||||||
|
|
||||||
require 'config.lsp-settings'
|
require 'config.lsp-settings'
|
||||||
end
|
end
|
||||||
@@ -57,6 +58,7 @@ end
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
config = config
|
config = config,
|
||||||
|
dependencies = { "williamboman/mason-lspconfig.nvim"},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
tag = "0.1.0",
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
config = function()
|
config = function()
|
||||||
require("telescope").setup {}
|
require("telescope").setup {}
|
||||||
|
|||||||
+18
-19
@@ -1,23 +1,22 @@
|
|||||||
return {
|
return {
|
||||||
{
|
-- {
|
||||||
"nvim-neorg/neorg",
|
-- "nvim-neorg/neorg",
|
||||||
build = ":Neorg sync-parsers",
|
-- dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
-- config = function()
|
||||||
config = function()
|
-- require("neorg").setup {
|
||||||
require("neorg").setup {
|
-- load = {
|
||||||
load = {
|
-- ["core.defaults"] = {},
|
||||||
["core.defaults"] = {},
|
-- ["core.concealer"] = {},
|
||||||
["core.concealer"] = {},
|
-- ["core.completion"] = {
|
||||||
["core.completion"] = {
|
-- config = {
|
||||||
config = {
|
-- engine = "nvim-cmp"
|
||||||
engine = "nvim-cmp"
|
-- }
|
||||||
}
|
-- },
|
||||||
},
|
-- ["core.export"] = {},
|
||||||
["core.export"] = {},
|
-- }
|
||||||
}
|
-- }
|
||||||
}
|
-- end,
|
||||||
end,
|
-- },
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
|
|||||||
@@ -32,9 +32,7 @@ return {
|
|||||||
{
|
{
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("gitsigns").setup({
|
require("gitsigns").setup()
|
||||||
_signs_staged_enable = true
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -74,9 +72,11 @@ return {
|
|||||||
lookahead = true,
|
lookahead = true,
|
||||||
keymaps = {
|
keymaps = {
|
||||||
["af"] = "@function.outer",
|
["af"] = "@function.outer",
|
||||||
["if"] = "@function.inner",
|
["kf"] = "@function.inner",
|
||||||
["ac"] = "@class.outer",
|
["ac"] = "@class.outer",
|
||||||
["ic"] = "@class.inner",
|
["kc"] = "@class.inner",
|
||||||
|
["ap"] = "@parameter.outer",
|
||||||
|
["kp"] = "@parameter.inner",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
swap = {
|
swap = {
|
||||||
@@ -88,7 +88,6 @@ return {
|
|||||||
["<leader>sn"] = "@parameter.inner",
|
["<leader>sn"] = "@parameter.inner",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user