Compare commits

..

18 Commits

Author SHA1 Message Date
a72a84972d chore(main): release 6.3.0 (#1231)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-04 23:10:50 +02:00
6045a52d82 fix: #1305 rust debugging not working on windows due to missing liblldb path (#1390) 2023-09-04 23:07:55 +02:00
a910b871d1 chore(build): auto-generate vimdoc 2023-09-04 21:05:40 +00:00
15022f4892 fix(java): don't accumulate on_attach, and make more configurable (#1388)
* fix(java): don't accumulate on_attach, and make more configurable

* refactor(java): move defaults to opts
2023-09-04 23:00:39 +02:00
f9dadc11b3 fix(autocmds): restore tabpage on resize (#1260) 2023-08-29 18:13:32 +02:00
ec0ddd481c fix(keymaps): change v mode to x mode for save file (#1262)
While trying to disable `<C-s>` entirely by `vim.keymap.del({ "i", "v","n", "s" }, "<C-s>")`
in my own `keymaps.lua`, I got an error on reopening Neovim `No such mapping`.
After tinkering around a bit, I changed `v` to `x`, since `v` incorporates both
`x` and `s` and the error stopped occuring.
2023-08-29 18:07:56 +02:00
64c5848fe8 style: fix comment typo (#1336) 2023-08-29 18:02:45 +02:00
23e2b073e6 fix(keymaps): remove gw keymap 2023-08-29 18:00:54 +02:00
451bde5b41 fix(python): disable ruff hover correctly (#1365)
* fix: disable ruff hover correctly

* better fix
2023-08-29 17:59:18 +02:00
377c0e397c feat(python): add more venv names (#1381) 2023-08-29 17:58:42 +02:00
971ed5c148 chore(build): auto-generate vimdoc 2023-08-29 15:57:49 +00:00
73dc5a503f fix(clangd): update setup from upstream changes (#1308) 2023-08-29 17:57:09 +02:00
566049aa4a feat(treesitter): add jsdoc to ensure_installed (#1252)
better highlighting for jsdoc comment
2023-07-30 11:10:45 +02:00
c1fc996ccd chore(build): auto-generate vimdoc 2023-07-30 09:10:24 +00:00
a62a5942de fix(yaml): yaml validate and enable line folding (#1251)
* fix(yaml): enable validate

see https://github.com/redhat-developer/yaml-language-server#language-server-settings

* feat(yaml): support line folding
2023-07-30 11:09:44 +02:00
9264c54ae9 feat(clangd): remove CMakelists root_dir search (#1230)
Provide better handling of root_dir search for C++ project
using CMakelists.txt per folder
2023-07-26 21:44:47 +02:00
549baee224 chore(build): auto-generate vimdoc 2023-07-26 19:44:27 +00:00
d7ca822d41 fix(yaml): yaml: Fix TypeError undefined length (#1229)
In YAML files LSP completion is not happening because
yaml-language-server is failing with error:

    TypeError: Cannot read properties of undefined (reading 'length')

from out/server/src/languageserver/handlers/settingsHandlers.js:78:51,
which it's expecting to have yaml.schemaStore.url.length and it's
doesn't exist.

Signed-off-by: Javier Tia <javier.tia@gmail.com>
2023-07-26 21:43:49 +02:00
11 changed files with 278 additions and 132 deletions

View File

@ -1,5 +1,27 @@
# Changelog
## [6.3.0](https://github.com/LazyVim/LazyVim/compare/v6.2.0...v6.3.0) (2023-09-04)
### Features
* **clangd:** remove CMakelists root_dir search ([#1230](https://github.com/LazyVim/LazyVim/issues/1230)) ([9264c54](https://github.com/LazyVim/LazyVim/commit/9264c54ae96d1d56f029ad9b561326c7b991c53b))
* **python:** add more venv names ([#1381](https://github.com/LazyVim/LazyVim/issues/1381)) ([377c0e3](https://github.com/LazyVim/LazyVim/commit/377c0e397c3585cf7bae6afb8bd279a47954be0a))
* **treesitter:** add jsdoc to ensure_installed ([#1252](https://github.com/LazyVim/LazyVim/issues/1252)) ([566049a](https://github.com/LazyVim/LazyVim/commit/566049aa4a26a86219dd1ad1624f9a1bf18831b6))
### Bug Fixes
* [#1305](https://github.com/LazyVim/LazyVim/issues/1305) rust debugging not working on windows due to missing liblldb path ([#1390](https://github.com/LazyVim/LazyVim/issues/1390)) ([6045a52](https://github.com/LazyVim/LazyVim/commit/6045a52d82ba4b0dcd0b050688302a22c2fc3991))
* **autocmds:** restore tabpage on resize ([#1260](https://github.com/LazyVim/LazyVim/issues/1260)) ([f9dadc1](https://github.com/LazyVim/LazyVim/commit/f9dadc11b39fb0b027473caaab2200b35c9f0c8b))
* **clangd:** update setup from upstream changes ([#1308](https://github.com/LazyVim/LazyVim/issues/1308)) ([73dc5a5](https://github.com/LazyVim/LazyVim/commit/73dc5a503f1f42fc12869688df1359ffd80da5d1))
* **java:** don't accumulate on_attach, and make more configurable ([#1388](https://github.com/LazyVim/LazyVim/issues/1388)) ([15022f4](https://github.com/LazyVim/LazyVim/commit/15022f4892726f9899ce5eb3aed7a19df29f62ef))
* **keymaps:** change `v` mode to `x` mode for `save file` ([#1262](https://github.com/LazyVim/LazyVim/issues/1262)) ([ec0ddd4](https://github.com/LazyVim/LazyVim/commit/ec0ddd481c785833c5caac9c9d22889b9e963883))
* **keymaps:** remove gw keymap ([23e2b07](https://github.com/LazyVim/LazyVim/commit/23e2b073e6fa75dacaa58dc1fe63392af7f54598))
* **python:** disable ruff hover correctly ([#1365](https://github.com/LazyVim/LazyVim/issues/1365)) ([451bde5](https://github.com/LazyVim/LazyVim/commit/451bde5b41ec410afbb2b5e75e339a3fc44c5587))
* **yaml:** yaml validate and enable line folding ([#1251](https://github.com/LazyVim/LazyVim/issues/1251)) ([a62a594](https://github.com/LazyVim/LazyVim/commit/a62a5942deb281b9edce3673e656854805297199))
* **yaml:** yaml: Fix TypeError undefined length ([#1229](https://github.com/LazyVim/LazyVim/issues/1229)) ([d7ca822](https://github.com/LazyVim/LazyVim/commit/d7ca822d41bc65e31dc1019a64d5d3518c8e2470))
## [6.2.0](https://github.com/LazyVim/LazyVim/compare/v6.1.0...v6.2.0) (2023-07-25)

View File

@ -1,4 +1,4 @@
*LazyVim.txt* For Neovim >= 0.8.0 Last change: 2023 July 25
*LazyVim.txt* For Neovim >= 0.8.0 Last change: 2023 September 04
==============================================================================
Table of Contents *LazyVim-table-of-contents*

View File

@ -22,7 +22,9 @@ vim.api.nvim_create_autocmd("TextYankPost", {
vim.api.nvim_create_autocmd({ "VimResized" }, {
group = augroup("resize_splits"),
callback = function()
local current_tab = vim.fn.tabpagenr()
vim.cmd("tabdo wincmd =")
vim.cmd("tabnext " .. current_tab)
end,
})

View File

@ -66,8 +66,6 @@ map(
{ desc = "Redraw / clear hlsearch / diff update" }
)
map({ "n", "x" }, "gw", "*N", { desc = "Search word under cursor" })
-- https://github.com/mhinz/vim-galore#saner-behavior-of-n-and-n
map("n", "n", "'Nn'[v:searchforward]", { expr = true, desc = "Next search result" })
map("x", "n", "'Nn'[v:searchforward]", { expr = true, desc = "Next search result" })
@ -82,7 +80,7 @@ map("i", ".", ".<c-g>u")
map("i", ";", ";<c-g>u")
-- save file
map({ "i", "v", "n", "s" }, "<C-s>", "<cmd>w<cr><esc>", { desc = "Save file" })
map({ "i", "x", "n", "s" }, "<C-s>", "<cmd>w<cr><esc>", { desc = "Save file" })
--keywordprg
map("n", "<leader>K", "<cmd>norm! K<cr>", { desc = "Keywordprg" })

View File

@ -15,29 +15,27 @@ return {
lazy = true,
config = function() end,
opts = {
extensions = {
inlay_hints = {
inline = false,
inlay_hints = {
inline = false,
},
ast = {
--These require codicons (https://github.com/microsoft/vscode-codicons)
role_icons = {
type = "",
declaration = "",
expression = "",
specifier = "",
statement = "",
["template argument"] = "",
},
ast = {
--These require codicons (https://github.com/microsoft/vscode-codicons)
role_icons = {
type = "",
declaration = "",
expression = "",
specifier = "",
statement = "",
["template argument"] = "",
},
kind_icons = {
Compound = "",
Recovery = "",
TranslationUnit = "",
PackExpansion = "",
TemplateTypeParm = "",
TemplateTemplateParm = "",
TemplateParamObject = "",
},
kind_icons = {
Compound = "",
Recovery = "",
TranslationUnit = "",
PackExpansion = "",
TemplateTypeParm = "",
TemplateTemplateParm = "",
TemplateParamObject = "",
},
},
},
@ -56,7 +54,6 @@ return {
root_dir = function(fname)
return require("lspconfig.util").root_pattern(
"Makefile",
"CMakeLists.txt",
"configure.ac",
"configure.in",
"config.h.in",
@ -90,7 +87,7 @@ return {
clangd = function(_, opts)
local clangd_ext_opts = require("lazyvim.util").opts("clangd_extensions.nvim")
require("clangd_extensions").setup(vim.tbl_deep_extend("force", clangd_ext_opts or {}, { server = opts }))
return true
return false
end,
},
},

File diff suppressed because it is too large Load Diff

View File

@ -14,16 +14,16 @@ return {
pyright = {},
ruff_lsp = {},
},
},
setup = {
ruff_lsp = function()
require("lazyvim.util").on_attach(function(client, _)
if client.name == "ruff_lsp" then
-- Disable hover in favor of Pyright
client.server_capabilities.hoverProvider = false
end
end)
end,
setup = {
ruff_lsp = function()
require("lazyvim.util").on_attach(function(client, _)
if client.name == "ruff_lsp" then
-- Disable hover in favor of Pyright
client.server_capabilities.hoverProvider = false
end
end)
end,
},
},
},
{
@ -61,7 +61,14 @@ return {
{
"linux-cultist/venv-selector.nvim",
cmd = "VenvSelect",
opts = {},
opts = {
name = {
"venv",
".venv",
"env",
".env",
},
},
keys = { { "<leader>cv", "<cmd>:VenvSelect<cr>", desc = "Select VirtualEnv" } },
},
}

View File

@ -51,8 +51,14 @@ return {
local codelldb = mason_registry.get_package("codelldb")
local extension_path = codelldb:get_install_path() .. "/extension/"
local codelldb_path = extension_path .. "adapter/codelldb"
local liblldb_path = vim.fn.has("mac") == 1 and extension_path .. "lldb/lib/liblldb.dylib"
or extension_path .. "lldb/lib/liblldb.so"
local liblldb_path = ""
if vim.loop.os_uname().sysname:find("Windows") then
liblldb_path = extension_path .. "lldb\\bin\\liblldb.dll"
elseif vim.fn.has("mac") == 1 then
liblldb_path = extension_path .. "lldb/lib/liblldb.dylib"
else
liblldb_path = extension_path .. "lldb/lib/liblldb.so"
end
adapter = require("rust-tools.dap").get_codelldb_adapter(codelldb_path, liblldb_path)
end
return {

View File

@ -21,6 +21,15 @@ return {
-- make sure mason installs the server
servers = {
yamlls = {
-- Have to add this for yamlls to understand that we support line folding
capabilities = {
textDocument = {
foldingRange = {
dynamicRegistration = false,
lineFoldingOnly = true,
},
},
},
-- lazy-load schemastore when needed
on_new_config = function(new_config)
new_config.settings.yaml.schemas = new_config.settings.yaml.schemas or {}
@ -33,11 +42,13 @@ return {
format = {
enable = true,
},
validate = { enable = true },
validate = true,
schemaStore = {
-- Must disable built-in schemaStore support to use
-- schemas from SchemaStore.nvim plugin
enable = false,
-- Avoid TypeError: Cannot read properties of undefined (reading 'length')
url = "",
},
},
},

View File

@ -170,7 +170,7 @@ return {
require("lspconfig")[server].setup(server_opts)
end
-- get all the servers that are available thourgh mason-lspconfig
-- get all the servers that are available through mason-lspconfig
local have_mason, mlsp = pcall(require, "mason-lspconfig")
local all_mslp_servers = {}
if have_mason then

View File

@ -34,6 +34,7 @@ return {
"c",
"html",
"javascript",
"jsdoc",
"json",
"lua",
"luadoc",