make diagnostics inline
This commit is contained in:
parent
097b261267
commit
0d9bd24bf6
3 changed files with 50 additions and 17 deletions
11
init.lua
11
init.lua
|
@ -1,5 +1,6 @@
|
||||||
require "plug"
|
require('plug')
|
||||||
require "colors"
|
require('colors')
|
||||||
require "options"
|
require('options')
|
||||||
require "keymap"
|
require('keymap')
|
||||||
require "lsp"
|
require('lsp')
|
||||||
|
|
||||||
|
|
38
lua/lsp.lua
38
lua/lsp.lua
|
@ -12,8 +12,10 @@ require('nvim-treesitter.configs').setup({
|
||||||
'vimdoc',
|
'vimdoc',
|
||||||
'hyprlang',
|
'hyprlang',
|
||||||
},
|
},
|
||||||
sync_install = true,
|
sync_install = false,
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
|
ignore_install = {},
|
||||||
|
modules = {},
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
|
@ -38,18 +40,34 @@ require("mason-lspconfig").setup({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
-- vim.lsp.config( 'lua_ls', {
|
vim.lsp.config( 'lua_ls', {
|
||||||
-- settings = {
|
settings = {
|
||||||
-- Lua = {
|
Lua = {
|
||||||
-- workspace = {
|
workspace = {
|
||||||
-- library = vim.api.nvim_get_runtime_file("", true)
|
library = vim.api.nvim_get_runtime_file("", true)
|
||||||
-- }
|
}
|
||||||
-- }
|
}
|
||||||
-- }
|
}
|
||||||
-- })
|
})
|
||||||
vim.lsp.config( 'lua_ls', { })
|
vim.lsp.config( 'lua_ls', { })
|
||||||
vim.lsp.enable({ 'lua_ls', 'pylsp' })
|
vim.lsp.enable({ 'lua_ls', 'pylsp' })
|
||||||
|
|
||||||
|
vim.diagnostic.config({
|
||||||
|
signs = false,
|
||||||
|
virtual_text = {
|
||||||
|
prefix = '●',
|
||||||
|
spacing = 2,
|
||||||
|
},
|
||||||
|
float = {
|
||||||
|
focusable = false,
|
||||||
|
style = 'minimal',
|
||||||
|
border = 'rounded',
|
||||||
|
source = 'if_many',
|
||||||
|
header = '',
|
||||||
|
prefix = '',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
require "blink.cmp".setup({
|
require "blink.cmp".setup({
|
||||||
keymap = {
|
keymap = {
|
||||||
|
|
18
lua/plug.lua
18
lua/plug.lua
|
@ -23,11 +23,25 @@ local plugins = {
|
||||||
setup = true },
|
setup = true },
|
||||||
|
|
||||||
{ url = 'https://github.com/greggh/claude-code.nvim',
|
{ url = 'https://github.com/greggh/claude-code.nvim',
|
||||||
setup = true },
|
setup = function ()
|
||||||
|
require("claude-code").setup({
|
||||||
|
window = {
|
||||||
|
position = "float",
|
||||||
|
float = {
|
||||||
|
width = "70%",
|
||||||
|
height = "60%",
|
||||||
|
row = "60%",
|
||||||
|
col = "center",
|
||||||
|
relative = "editor",
|
||||||
|
border = "rounded",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end },
|
||||||
|
|
||||||
{ url = 'https://github.com/nvim-lualine/lualine.nvim',
|
{ url = 'https://github.com/nvim-lualine/lualine.nvim',
|
||||||
dependencies = { 'https://github.com/nvim-tree/nvim-web-devicons' },
|
dependencies = { 'https://github.com/nvim-tree/nvim-web-devicons' },
|
||||||
setup = function()
|
setup = function ()
|
||||||
require('lualine').setup({
|
require('lualine').setup({
|
||||||
options = {
|
options = {
|
||||||
section_separators = { left = '', right = '' },
|
section_separators = { left = '', right = '' },
|
||||||
|
|
Loading…
Add table
Reference in a new issue