Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nvim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iliya.saroukha
nvim
Commits
49f8b113
Verified
Commit
49f8b113
authored
7 months ago
by
iliya.saroukha
Browse files
Options
Downloads
Patches
Plain Diff
fix: added back diagnostics icons
parent
6e773995
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
feat: v2 config fully working, setting it as the default from now on
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lua/plugins/nvim-lspconfig.lua
+10
-4
10 additions, 4 deletions
lua/plugins/nvim-lspconfig.lua
with
10 additions
and
4 deletions
lua/plugins/nvim-lspconfig.lua
+
10
−
4
View file @
49f8b113
...
...
@@ -60,6 +60,12 @@ return { -- LSP Configuration & Plugins
-- NOTE: Remember that Lua is a real programming language, and as such it is possible
-- to define small helper and utility functions so you don't have to repeat yourself.
--
local
signs
=
{
Error
=
""
,
Warn
=
""
,
Hint
=
""
,
Info
=
""
}
for
type
,
icon
in
pairs
(
signs
)
do
local
hl
=
"DiagnosticSign"
..
type
vim
.
fn
.
sign_define
(
hl
,
{
text
=
icon
,
texthl
=
hl
,
numhl
=
""
})
end
-- In this case, we create a function that lets us more easily define mappings specific
-- for LSP related items. It sets the mode, buffer and description for us each time.
local
map
=
function
(
keys
,
func
,
desc
)
...
...
@@ -161,10 +167,10 @@ return { -- LSP Configuration & Plugins
-- - settings (table): Override the default settings passed when initializing the server.
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local
servers
=
{
--
clangd = {},
--
gopls = {},
-- pyright
= {},
--
rust_analyzer = {},
clangd
=
{},
gopls
=
{},
pylsp
=
{},
rust_analyzer
=
{},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
--
-- Some languages (like typescript) have entire language plugins that can be useful:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment