stuff
This commit is contained in:
@ -1,6 +1,5 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
-- TODO: backfill this to template
|
|
||||||
M.setup = function()
|
M.setup = function()
|
||||||
local signs = {
|
local signs = {
|
||||||
{ name = "DiagnosticSignError", text = "" },
|
{ name = "DiagnosticSignError", text = "" },
|
||||||
@ -24,7 +23,7 @@ M.setup = function()
|
|||||||
underline = true,
|
underline = true,
|
||||||
severity_sort = true,
|
severity_sort = true,
|
||||||
float = {
|
float = {
|
||||||
focusable = false,
|
focusable = true,
|
||||||
style = "minimal",
|
style = "minimal",
|
||||||
border = "rounded",
|
border = "rounded",
|
||||||
source = "always",
|
source = "always",
|
||||||
@ -34,16 +33,6 @@ M.setup = function()
|
|||||||
}
|
}
|
||||||
|
|
||||||
vim.diagnostic.config(config)
|
vim.diagnostic.config(config)
|
||||||
|
|
||||||
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
|
|
||||||
border = "rounded",
|
|
||||||
width = 60,
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {
|
|
||||||
border = "rounded",
|
|
||||||
width = 60,
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- local function lsp_highlight_document(client)
|
-- local function lsp_highlight_document(client)
|
||||||
|
|||||||
@ -28,12 +28,7 @@ vim.api.nvim_set_keymap("n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", opts
|
|||||||
vim.api.nvim_set_keymap("n", "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>", opts)
|
vim.api.nvim_set_keymap("n", "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>", opts)
|
||||||
-- vim.api.nvim_buf_set_keymap("n", "<leader>f", "<cmd>lua vim.diagnostic.open_float()<CR>", opts)
|
-- vim.api.nvim_buf_set_keymap("n", "<leader>f", "<cmd>lua vim.diagnostic.open_float()<CR>", opts)
|
||||||
vim.api.nvim_set_keymap("n", "[d", '<cmd>lua vim.diagnostic.goto_prev({ border = "rounded" })<CR>', opts)
|
vim.api.nvim_set_keymap("n", "[d", '<cmd>lua vim.diagnostic.goto_prev({ border = "rounded" })<CR>', opts)
|
||||||
vim.api.nvim_set_keymap(
|
vim.api.nvim_set_keymap("n", "gl", '<cmd>lua vim.diagnostic.open_float({ border = "rounded" })<CR>', opts)
|
||||||
"n",
|
|
||||||
"gl",
|
|
||||||
'<cmd>lua vim.diagnostic.open_float({ border = "rounded" })<CR>',
|
|
||||||
opts
|
|
||||||
)
|
|
||||||
vim.api.nvim_set_keymap("n", "]d", '<cmd>lua vim.diagnostic.goto_next({ border = "rounded" })<CR>', opts)
|
vim.api.nvim_set_keymap("n", "]d", '<cmd>lua vim.diagnostic.goto_next({ border = "rounded" })<CR>', opts)
|
||||||
vim.api.nvim_set_keymap("n", "<leader>q", "<cmd>lua vim.diagnostic.setloclist()<CR>", opts)
|
vim.api.nvim_set_keymap("n", "<leader>q", "<cmd>lua vim.diagnostic.setloclist()<CR>", opts)
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ vim.opt.showmode = false
|
|||||||
vim.opt.fileencoding = "utf-8"
|
vim.opt.fileencoding = "utf-8"
|
||||||
vim.opt.ignorecase = true
|
vim.opt.ignorecase = true
|
||||||
vim.opt.showtabline = 2
|
vim.opt.showtabline = 2
|
||||||
vim.opt.pumblend = 10
|
vim.opt.pumblend = 5
|
||||||
vim.opt.smartindent = true
|
vim.opt.smartindent = true
|
||||||
vim.opt.smartcase = true
|
vim.opt.smartcase = true
|
||||||
vim.opt.splitright = true
|
vim.opt.splitright = true
|
||||||
|
|||||||
@ -53,7 +53,7 @@ lazy.setup({
|
|||||||
{
|
{
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
branch = "v2.x",
|
branch = "v2.x",
|
||||||
requires = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
@ -62,7 +62,7 @@ lazy.setup({
|
|||||||
|
|
||||||
{
|
{
|
||||||
"kyazdani42/nvim-tree.lua",
|
"kyazdani42/nvim-tree.lua",
|
||||||
requires = {
|
dependencies = {
|
||||||
"kyazdani42/nvim-web-devicons", -- optional, for file icons
|
"kyazdani42/nvim-web-devicons", -- optional, for file icons
|
||||||
},
|
},
|
||||||
tag = "nightly", -- optional, updated every week. (see issue #1193)
|
tag = "nightly", -- optional, updated every week. (see issue #1193)
|
||||||
@ -71,7 +71,7 @@ lazy.setup({
|
|||||||
{
|
{
|
||||||
"akinsho/bufferline.nvim",
|
"akinsho/bufferline.nvim",
|
||||||
tag = "v2.*",
|
tag = "v2.*",
|
||||||
requires = "kyazdani42/nvim-web-devicons",
|
dependencies = {"kyazdani42/nvim-web-devicons"},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -118,6 +118,7 @@ lazy.setup({
|
|||||||
|
|
||||||
"folke/neodev.nvim",
|
"folke/neodev.nvim",
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
|
"b0o/schemastore.nvim"
|
||||||
})
|
})
|
||||||
|
|
||||||
-- vim.cmd([[
|
-- vim.cmd([[
|
||||||
|
|||||||
0
.config/nvim/lua/user/schemastore.lua
Normal file
0
.config/nvim/lua/user/schemastore.lua
Normal file
@ -4,17 +4,16 @@ if not status_ok then
|
|||||||
end
|
end
|
||||||
|
|
||||||
configs.setup({
|
configs.setup({
|
||||||
ensure_installed = {"python", "rust", "javascript"}, -- one of "all" or a list of languages
|
ensure_installed = { "python", "rust", "javascript" }, -- one of "all" or a list of languages
|
||||||
ignore_install = { "phpdoc", "comment", "rst" }, -- List of parsers to ignore installing
|
ignore_install = { "phpdoc", "comment", "rst" }, -- List of parsers to ignore installing
|
||||||
highlight = {
|
highlight = {
|
||||||
additional_vim_regex_highlighting = false,
|
enable = true,
|
||||||
enable = true, -- false will disable the whole extension
|
disable = { "css" },
|
||||||
disable = { "css" }, -- list of language that will be disabled
|
|
||||||
},
|
},
|
||||||
autopairs = {
|
autopairs = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
indent = { enable = true, disable = { "python", "css" } },
|
indent = { enable = true },
|
||||||
autotag = {
|
autotag = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user