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 "colors"
|
||||
require "options"
|
||||
require "keymap"
|
||||
require "lsp"
|
||||
require('plug')
|
||||
require('colors')
|
||||
require('options')
|
||||
require('keymap')
|
||||
require('lsp')
|
||||
|
||||
|
|
38
lua/lsp.lua
38
lua/lsp.lua
|
@ -12,8 +12,10 @@ require('nvim-treesitter.configs').setup({
|
|||
'vimdoc',
|
||||
'hyprlang',
|
||||
},
|
||||
sync_install = true,
|
||||
sync_install = false,
|
||||
auto_install = true,
|
||||
ignore_install = {},
|
||||
modules = {},
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
|
@ -38,18 +40,34 @@ require("mason-lspconfig").setup({
|
|||
})
|
||||
|
||||
|
||||
-- vim.lsp.config( 'lua_ls', {
|
||||
-- settings = {
|
||||
-- Lua = {
|
||||
-- workspace = {
|
||||
-- library = vim.api.nvim_get_runtime_file("", true)
|
||||
-- }
|
||||
-- }
|
||||
-- }
|
||||
-- })
|
||||
vim.lsp.config( 'lua_ls', {
|
||||
settings = {
|
||||
Lua = {
|
||||
workspace = {
|
||||
library = vim.api.nvim_get_runtime_file("", true)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
vim.lsp.config( 'lua_ls', { })
|
||||
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({
|
||||
keymap = {
|
||||
|
|
16
lua/plug.lua
16
lua/plug.lua
|
@ -23,7 +23,21 @@ local plugins = {
|
|||
setup = true },
|
||||
|
||||
{ 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',
|
||||
dependencies = { 'https://github.com/nvim-tree/nvim-web-devicons' },
|
||||
|
|
Loading…
Add table
Reference in a new issue