Compare commits

...

4 Commits

Author SHA1 Message Date
iGor milhit 9654339b87
config: add a minimal config file for debug
Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-04-27 15:22:39 +02:00
iGor milhit 59292d78f1
theme: set the adwaita colorscheme
- Sets the Adwaita colorscheme, also for lualine.
- Remove the marksman parser.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-04-27 15:20:59 +02:00
iGor milhit ece93842f9
html: unset the textwidth for html filetype
Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-04-26 09:02:16 +02:00
iGor milhit e88e14a2d4
pandoc: disable treesitter for markdown
- Disables treesitter for markdown to avoid conflicts with vim-pandoc*
  plugins.
- Sets the folding level to 1 for pandoc filetypes.
- Moves to a nord light theme.
- Fixes the treesitter configuration.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-04-26 09:01:25 +02:00
4 changed files with 172 additions and 18 deletions

View File

@ -0,0 +1,4 @@
-- Specific settings for HTML files
-- No limit to text_width
vim.o.textwidth = 0

View File

@ -3,3 +3,4 @@
-- See :h awa
vim.opt.awa=true
vim.opt.foldlevel = 1

View File

@ -107,19 +107,14 @@ require('lazy').setup({
},
},
-- Adwaita colorscheme
{
-- Nordic Theme
'andersevenrud/nordic.nvim',
"Mofiqul/adwaita.nvim",
lazy = false,
priority = 1000,
config = function()
require('nordic').colorscheme({
underline_option = 'none',
italic = true,
italic_comments = false,
minimal_mode = false,
alternate_backgrounds = false
})
end,
vim.cmd('colorscheme adwaita')
end
},
{
@ -129,7 +124,7 @@ require('lazy').setup({
opts = {
options = {
icons_enabled = true,
theme = 'nord',
theme = 'adwaita',
component_separators = '|',
section_separators = '',
},
@ -342,10 +337,22 @@ require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim', 'json' },
-- Do not install parses synchronously
sync_install = false,
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,
highlight = { enable = true },
-- List of parsers to ignore installing
ignore_install = { "markdown" },
-- Required property, but empr?
modules = {},
highlight = {
enable = true,
disable = { "markdown" },
},
indent = { enable = true, disable = { 'python' } },
incremental_selection = {
enable = true,
@ -465,12 +472,12 @@ local servers = {
-- rust_analyzer = {},
-- tsserver = {},
marksman = {
ft = {
'markdown',
'pandoc'
}
},
-- marksman = {
-- ft = {
-- 'markdown',
-- 'pandoc'
-- }
-- },
lua_ls = {
Lua = {

142
minit.lua 100644
View File

@ -0,0 +1,142 @@
-- Set <space> as the leader key
-- See `:help mapleader`
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Install package manager
-- https://github.com/folke/lazy.nvim
-- `:help lazy.nvim.txt` for more info
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system {
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release
lazypath,
}
end
vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
{
"Mofiqul/adwaita.nvim",
-- "shaunsingh/nord.nvim",
lazy = false,
priority = 1000,
config = function()
vim.cmd('colorscheme adwaita')
end
},
{
-- Set lualine as statusline
'nvim-lualine/lualine.nvim',
-- See `:help lualine.txt`
opts = {
options = {
icons_enabled = true,
theme = 'adwaita',
component_separators = '|',
section_separators = '',
},
},
},
{
-- Highlight, edit, and navigate code
'nvim-treesitter/nvim-treesitter',
dependencies = {
'nvim-treesitter/nvim-treesitter-textobjects',
},
build = ':TSUpdate',
}
})
vim.wo.number = true
-- [[ Configure Treesitter ]]
-- See `:help nvim-treesitter`
require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { },
-- Do not install parses synchronously
sync_install = false,
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,
-- List of parsers to ignore installing
-- ignore_install = { "markdown" },
-- Required property, but empty
modules = {},
highlight = {
enable = true,
},
indent = { enable = true, disable = { 'python' } },
incremental_selection = {
enable = true,
keymaps = {
init_selection = '<c-space>',
node_incremental = '<c-space>',
scope_incremental = '<c-s>',
node_decremental = '<M-space>',
},
},
textobjects = {
select = {
enable = true,
lookahead = true, -- Automatically jump forward to textobj, similar to targets.vim
keymaps = {
-- You can use the capture groups defined in textobjects.scm
['aa'] = '@parameter.outer',
['ia'] = '@parameter.inner',
['af'] = '@function.outer',
['if'] = '@function.inner',
['ac'] = '@class.outer',
['ic'] = '@class.inner',
},
},
move = {
enable = true,
set_jumps = true, -- whether to set jumps in the jumplist
goto_next_start = {
[']m'] = '@function.outer',
[']]'] = '@class.outer',
},
goto_next_end = {
[']M'] = '@function.outer',
[']['] = '@class.outer',
},
goto_previous_start = {
['[m'] = '@function.outer',
['[['] = '@class.outer',
},
goto_previous_end = {
['[M'] = '@function.outer',
['[]'] = '@class.outer',
},
},
swap = {
enable = true,
swap_next = {
['<leader>a'] = '@parameter.inner',
},
swap_previous = {
['<leader>A'] = '@parameter.inner',
},
},
},
}
-- Diagnostic keymaps
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous diagnostic message' })
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnostic message' })
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Open floating diagnostic message' })
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostics list' })