Compare commits
2 Commits
48aaccc06e
...
f1227d4986
Author | SHA1 | Date |
---|---|---|
Pavle Portic | f1227d4986 | |
Pavle Portic | 8bfba9f71b |
|
@ -135,7 +135,10 @@ def construct_workspace_name(parts) -> str:
|
|||
if parts['icons']:
|
||||
new_name += ' ' + parts['icons']
|
||||
|
||||
return new_name + ' '
|
||||
if len(new_name) > 1:
|
||||
new_name += ' '
|
||||
|
||||
return new_name
|
||||
|
||||
|
||||
# Returns an array of the values for the given property from xprop. This
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
require("sets")
|
||||
|
||||
-- Lazy.nvim
|
||||
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",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup("plugins", {
|
||||
change_detection = {
|
||||
enabled = true,
|
||||
notify = false,
|
||||
},
|
||||
})
|
||||
|
||||
vim.cmd([[colorscheme gruvbox]])
|
||||
|
||||
require('telescope').load_extension('projects')
|
||||
require('project_nvim').setup({})
|
||||
|
||||
-- Import additional config files
|
||||
require("mappings")
|
||||
require("git")
|
||||
require("lsp")
|
||||
require("line")
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
|
||||
"LuaSnip": { "branch": "master", "commit": "0df29db3543837f8b41597f2640397c5ec792b7b" },
|
||||
"bufferline.nvim": { "branch": "main", "commit": "6ecd37e0fa8b156099daedd2191130e083fb1490" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" },
|
||||
"copilot.vim": { "branch": "release", "commit": "998cf5ab1b85e844c7e8edb864a997e590df7182" },
|
||||
"diffview.nvim": { "branch": "main", "commit": "d38c1b5266850f77f75e006bcc26213684e1e141" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "ff01d34daaed72f271a8ffa088a7e839a60c640f" },
|
||||
"gruvbox.nvim": { "branch": "main", "commit": "477c62493c82684ed510c4f70eaf83802e398898" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "276e572f645430bcfd6fd25faa301ea9077f6ab1" },
|
||||
"lsp-zero.nvim": { "branch": "v3.x", "commit": "22d2186bee730d68f6fd3bb2d19a389784c37a96" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "45e27ca739c7be6c49e5496d14fcf45a303c3a63" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "397273083f988c1a17acf3816947cd198338e700" },
|
||||
"mason.nvim": { "branch": "main", "commit": "cd7835b15f5a4204fc37e0aa739347472121a54c" },
|
||||
"neodev.nvim": { "branch": "main", "commit": "24b403eabde652904077f84fd55441744e77a109" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "748e72c05495a3d30e88a6ef04b21697019a9aa9" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "5dce1b778b85c717f6614e3f4da45e9f19f54435" },
|
||||
"nvim-cursorword": { "branch": "master", "commit": "c0f2958ec729b47be2dba0d79ef43d005dac9f4e" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "bb8e3dfbe10d80c294bb609c4bb4bba3ecdfbfe2" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "0d5c611e3fd36353b11b412661ff4f07bcc8e5c6" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "76c7a89b41de77a4f83fb77fa072c5ad7605fe3b" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "a1e6268779411048a87f767a27380089362a0ce2" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
|
||||
"project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" },
|
||||
"suda.vim": { "branch": "master", "commit": "8b0fc3711760195aba104e2d190cff9af8267052" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" },
|
||||
"telescope.nvim": { "branch": "0.1.x", "commit": "7011eaae0ac1afe036e30c95cf80200b8dc3f21a" },
|
||||
"undotree": { "branch": "master", "commit": "0e11ba7325efbbb3f3bebe06213afa3e7ec75131" },
|
||||
"vim-fugitive": { "branch": "master", "commit": "cbe9dfa162c178946afa689dd3f42d4ea8bf89c1" },
|
||||
"vim-matchup": { "branch": "master", "commit": "6dbe108230c7dbbf00555b7d4d9f6a891837ef07" },
|
||||
"vim-repeat": { "branch": "master", "commit": "24afe922e6a05891756ecf331f39a1f6743d3d5a" },
|
||||
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "6962dae3565369363b59dd51fb206051555fcb4d" },
|
||||
"whitespace.nvim": { "branch": "master", "commit": "f0fc9e9c4ce3f7d2166e9e5a069b64b9ca4a3f15" }
|
||||
}
|
|
@ -0,0 +1,68 @@
|
|||
require('gitsigns').setup{
|
||||
signs = {
|
||||
add = { text = '+' },
|
||||
change = { text = '│' },
|
||||
delete = { text = '_' },
|
||||
topdelete = { text = '‾' },
|
||||
changedelete = { text = '~' },
|
||||
untracked = { text = '┆' },
|
||||
},
|
||||
signcolumn = true, -- :Gitsigns toggle_signs
|
||||
numhl = false, -- :Gitsigns toggle_numhl
|
||||
linehl = false, -- :Gitsigns toggle_linehl
|
||||
word_diff = false, -- :Gitsigns toggle_word_diff
|
||||
watch_gitdir = {
|
||||
follow_files = true
|
||||
},
|
||||
attach_to_untracked = true,
|
||||
current_line_blame = true, -- :Gitsigns toggle_current_line_blame
|
||||
current_line_blame_opts = {
|
||||
virt_text = true,
|
||||
virt_text_pos = 'right_align', -- 'eol' | 'overlay' | 'right_align'
|
||||
delay = 100,
|
||||
ignore_whitespace = false,
|
||||
},
|
||||
current_line_blame_formatter = '<author>, <author_time:%Y-%m-%d> - <summary>',
|
||||
sign_priority = 6,
|
||||
update_debounce = 100,
|
||||
status_formatter = nil, -- Use default
|
||||
max_file_length = 40000, -- Disable if file is longer than this (in lines)
|
||||
preview_config = {
|
||||
-- Options passed to nvim_open_win
|
||||
border = 'single',
|
||||
style = 'minimal',
|
||||
relative = 'cursor',
|
||||
row = 0,
|
||||
col = 1
|
||||
},
|
||||
on_attach = function(bufnr)
|
||||
local gs = package.loaded.gitsigns
|
||||
|
||||
local function map(mode, l, r, opts)
|
||||
opts = opts or {}
|
||||
opts.buffer = bufnr
|
||||
vim.keymap.set(mode, l, r, opts)
|
||||
end
|
||||
|
||||
-- Navigation
|
||||
map('n', ']c', function()
|
||||
if vim.wo.diff then return ']c' end
|
||||
vim.schedule(function() gs.next_hunk() end)
|
||||
return '<Ignore>'
|
||||
end, {expr=true})
|
||||
|
||||
map('n', '[c', function()
|
||||
if vim.wo.diff then return '[c' end
|
||||
vim.schedule(function() gs.prev_hunk() end)
|
||||
return '<Ignore>'
|
||||
end, {expr=true})
|
||||
|
||||
-- Actions
|
||||
map('n', '<leader>hs', gs.stage_hunk)
|
||||
map('n', '<leader>hu', gs.undo_stage_hunk)
|
||||
map('n', '<leader>hS', gs.stage_buffer)
|
||||
map('n', '<leader>hR', gs.reset_buffer)
|
||||
map('n', '<leader>tb', gs.toggle_current_line_blame)
|
||||
map('n', '<leader>td', gs.toggle_deleted)
|
||||
end
|
||||
}
|
|
@ -0,0 +1,106 @@
|
|||
require("lualine").setup({
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = 'gruvbox',
|
||||
component_separators = { left = '', right = ''},
|
||||
section_separators = { left = '', right = ''},
|
||||
disabled_filetypes = {
|
||||
statusline = {},
|
||||
winbar = {},
|
||||
},
|
||||
ignore_focus = {},
|
||||
always_divide_middle = true,
|
||||
globalstatus = false,
|
||||
refresh = {
|
||||
statusline = 1000,
|
||||
tabline = 1000,
|
||||
winbar = 1000,
|
||||
},
|
||||
show_filename_only = false,
|
||||
},
|
||||
sections = {
|
||||
lualine_a = {'mode'},
|
||||
lualine_b = {'branch', 'diff', 'diagnostics'},
|
||||
lualine_c = {
|
||||
{
|
||||
'filename',
|
||||
file_status = true, -- Displays file status (readonly status, modified status)
|
||||
newfile_status = false, -- Display new file status (new file means no write after created)
|
||||
path = 1, -- 0: Just the filename
|
||||
-- 1: Relative path
|
||||
-- 2: Absolute path
|
||||
-- 3: Absolute path, with tilde as the home directory
|
||||
-- 4: Filename and parent dir, with tilde as the home directory
|
||||
|
||||
shorting_target = 40, -- Shortens path to leave 40 spaces in the window
|
||||
-- for other components. (terrible name, any suggestions?)
|
||||
symbols = {
|
||||
modified = '[+]', -- Text to show when the file is modified.
|
||||
readonly = '[-]', -- Text to show when the file is non-modifiable or readonly.
|
||||
unnamed = '[No Name]', -- Text to show for unnamed buffers.
|
||||
newfile = '[New]', -- Text to show for newly created file before first write
|
||||
}
|
||||
}
|
||||
},
|
||||
lualine_x = {
|
||||
'filetype',
|
||||
{
|
||||
require("lazy.status").updates,
|
||||
cond = require("lazy.status").has_updates,
|
||||
color = { fg = "#ff9e64" },
|
||||
},
|
||||
},
|
||||
lualine_y = {'progress'},
|
||||
lualine_z = {'location'},
|
||||
},
|
||||
inactive_sections = {
|
||||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
lualine_c = {'filename'},
|
||||
lualine_x = {'location'},
|
||||
lualine_y = {},
|
||||
lualine_z = {},
|
||||
},
|
||||
tabline = {},
|
||||
winbar = {},
|
||||
inactive_winbar = {},
|
||||
extensions = {},
|
||||
})
|
||||
|
||||
|
||||
require("bufferline").setup({
|
||||
options = {
|
||||
mode = "buffers",
|
||||
themable = true,
|
||||
numbers = "ordinal",
|
||||
indicator = {
|
||||
icon = '▎', -- this should be omitted if indicator style is not 'icon'
|
||||
style = 'icon',
|
||||
},
|
||||
modified_icon = '●',
|
||||
close_icon = '',
|
||||
left_trunc_marker = '',
|
||||
right_trunc_marker = '',
|
||||
max_name_length = 24,
|
||||
max_prefix_length = 15, -- prefix used when a buffer is de-duplicated
|
||||
truncate_names = true, -- whether or not tab names should be truncated
|
||||
tab_size = 18,
|
||||
diagnostics = "nvim_lsp",
|
||||
color_icons = true,
|
||||
show_buffer_icons = true,
|
||||
show_buffer_close_icons = false,
|
||||
-- show_close_icon = false,
|
||||
-- show_tab_indicators = true | false,
|
||||
-- show_duplicate_prefix = true | false, -- whether to show duplicate buffer prefix
|
||||
persist_buffer_sort = true, -- whether or not custom sorted buffers should persist
|
||||
move_wraps_at_ends = false, -- whether or not the move command "wraps" at the first or last position
|
||||
-- can also be a table containing 2 custom separators
|
||||
-- [focused and unfocused]. eg: { '|', '|' }
|
||||
-- separator_style = "slant" | "slope" | "thick" | "thin" | { 'any', 'any' },
|
||||
-- enforce_regular_tabs = false | true,
|
||||
always_show_bufferline = true,
|
||||
hover = {
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
})
|
|
@ -0,0 +1,68 @@
|
|||
-- Load default lsp-zero keymaps
|
||||
local lsp_zero = require('lsp-zero')
|
||||
|
||||
lsp_zero.on_attach(function(_, bufnr)
|
||||
-- see :help lsp-zero-keybindings
|
||||
-- to learn the available actions
|
||||
lsp_zero.default_keymaps({buffer = bufnr})
|
||||
|
||||
local opts = {buffer = bufnr, remap = false}
|
||||
vim.keymap.set("n", "<leader>vw", function() vim.lsp.buf.workspace_symbol() end, opts)
|
||||
vim.keymap.set("n", "<leader>vc", function() vim.lsp.buf.code_action() end, opts)
|
||||
vim.keymap.set("n", "<leader>vr", function() vim.lsp.buf.rename() end, opts)
|
||||
|
||||
vim.keymap.set("n", "<leader>en", function() vim.diagnostic.goto_next() end, opts)
|
||||
vim.keymap.set("n", "<leader>ep", function() vim.diagnostic.goto_prev() end, opts)
|
||||
vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts)
|
||||
end)
|
||||
|
||||
lsp_zero.format_on_save({
|
||||
format_opts = {
|
||||
async = true,
|
||||
timeout_ms = 10000,
|
||||
},
|
||||
servers = {
|
||||
['prettier'] = {'javascript', 'typescript'},
|
||||
['gopls'] = {'go'},
|
||||
['stylua'] = {'lua'},
|
||||
}
|
||||
})
|
||||
|
||||
-- Setup LSP servers
|
||||
local lspconfig = require('lspconfig')
|
||||
-- go
|
||||
lspconfig.golangci_lint_ls.setup({})
|
||||
lspconfig.gopls.setup({})
|
||||
-- lua
|
||||
lspconfig.lua_ls.setup({})
|
||||
-- python
|
||||
lspconfig.pylsp.setup{}
|
||||
-- typescript
|
||||
lspconfig.tsserver.setup({})
|
||||
lspconfig.eslint.setup({})
|
||||
-- other
|
||||
lspconfig.terraformls.setup({})
|
||||
lspconfig.jsonls.setup({})
|
||||
|
||||
-- Customize keymaps
|
||||
local cmp = require('cmp')
|
||||
-- local cmp_action = require('lsp-zero').cmp_action()
|
||||
|
||||
cmp.setup({
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
-- `Enter` key to confirm completion
|
||||
['<CR>'] = cmp.mapping.confirm({select = false}),
|
||||
|
||||
['<C-Space>'] = cmp.mapping.complete(),
|
||||
|
||||
-- Scroll up and down in the completion documentation
|
||||
['<C-u>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-d>'] = cmp.mapping.scroll_docs(4),
|
||||
})
|
||||
})
|
||||
|
||||
-- Fix lua lsp for nvim config
|
||||
local lua_opts = lsp_zero.nvim_lua_ls()
|
||||
require('lspconfig').lua_ls.setup(lua_opts)
|
||||
|
||||
require("mason").setup()
|
|
@ -0,0 +1,70 @@
|
|||
-- Colemak bindings
|
||||
vim.keymap.set("", "n", "j")
|
||||
vim.keymap.set("", "e", "k")
|
||||
vim.keymap.set("", "i", "l")
|
||||
vim.keymap.set("", "I", "$")
|
||||
vim.keymap.set("", "H", "0")
|
||||
vim.keymap.set("", "l", "i")
|
||||
vim.keymap.set("", "L", "I")
|
||||
vim.keymap.set("n", "N", "mzJ`z")
|
||||
vim.keymap.set("", "k", "n")
|
||||
vim.keymap.set("", "K", "N")
|
||||
vim.keymap.set("", "J", "M")
|
||||
vim.keymap.set("", "j", "m")
|
||||
vim.keymap.set("", "m", "e")
|
||||
vim.keymap.set("", "M", "E")
|
||||
|
||||
vim.keymap.set("v", "N", ":m '>+1<CR>gv=gv")
|
||||
vim.keymap.set("v", "E", ":m '<-2<CR>gv=gv")
|
||||
|
||||
-- General mappings
|
||||
vim.keymap.set("", "<BS>", "gg")
|
||||
vim.keymap.set("", "<CR>", "G")
|
||||
vim.keymap.set("", "<Space>", "<NOP>")
|
||||
|
||||
vim.keymap.set("x", "p", "\"_dP")
|
||||
|
||||
vim.keymap.set("n", "<tab>", vim.cmd.bn)
|
||||
vim.keymap.set("n", "<s-tab>", vim.cmd.bp)
|
||||
vim.keymap.set("n", "U", vim.cmd.redo)
|
||||
|
||||
-- File operation maps
|
||||
vim.keymap.set("n", "<leader>fd", function ()
|
||||
if vim.bo.filetype == "json" then
|
||||
vim.cmd("%!jq")
|
||||
else
|
||||
vim.cmd.normal('jzgg=G`z')
|
||||
end
|
||||
end)
|
||||
vim.keymap.set("n", "<leader>fs", vim.cmd.w)
|
||||
vim.keymap.set("n", "<leader>W", vim.cmd.SudaWrite)
|
||||
vim.keymap.set("n", "<leader>q", vim.cmd.q)
|
||||
vim.keymap.set("n", "<leader>Q", ":q!<cr>")
|
||||
vim.keymap.set("n", "<leader>wq", vim.cmd.wq)
|
||||
vim.keymap.set("n", "<leader>bd", ":bp | bd #<cr>")
|
||||
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
||||
|
||||
vim.keymap.set("", "\\", ":let @/ = \"\"<CR>")
|
||||
|
||||
-- Git
|
||||
vim.keymap.set("n", "<leader>gd", vim.cmd.Gvdiff)
|
||||
-- vim.keymap.set("n", "<leader>gb", vim.cmd('Gitsigns toggle_current_line_blame'))
|
||||
|
||||
-- window movement
|
||||
vim.keymap.set("n", "<leader>wn", "<C-W>j")
|
||||
vim.keymap.set("n", "<leader>we", "<C-W>k")
|
||||
vim.keymap.set("n", "<leader>wh", "<C-W>h")
|
||||
vim.keymap.set("n", "<leader>wi", "<C-W>l")
|
||||
vim.keymap.set("n", "<leader>wH", "<C-W>5<")
|
||||
vim.keymap.set("n", "<leader>wI", "<C-W>5>")
|
||||
vim.keymap.set("n", "<leader>wN", ":resize +5<CR>")
|
||||
vim.keymap.set("n", "<leader>wE", ":resize -5<CR>")
|
||||
|
||||
-- Telescope
|
||||
local builtin = require('telescope.builtin')
|
||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
||||
vim.keymap.set('n', '<leader>fp', builtin.git_files, {})
|
||||
vim.keymap.set('n', '<c-p>', builtin.git_files, {})
|
||||
vim.keymap.set('n', '<leader>rg', builtin.live_grep, {})
|
||||
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
|
||||
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
'numToStr/Comment.nvim',
|
||||
opts = {
|
||||
toggler = {
|
||||
---Line-comment toggle keymap
|
||||
line = '<leader>/',
|
||||
---Block-comment toggle keymap
|
||||
block = '<leader>b/',
|
||||
},
|
||||
},
|
||||
lazy = false,
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
"lewis6991/gitsigns.nvim",
|
||||
"sindrets/diffview.nvim",
|
||||
"tpope/vim-fugitive",
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
return {
|
||||
-- Look and feel
|
||||
{
|
||||
"ellisonleao/gruvbox.nvim",
|
||||
priority = 1000 ,
|
||||
config = true,
|
||||
},
|
||||
{
|
||||
'akinsho/bufferline.nvim',
|
||||
version = "*",
|
||||
dependencies = 'nvim-tree/nvim-web-devicons',
|
||||
},
|
||||
"nvim-lualine/lualine.nvim",
|
||||
|
||||
-- keymaps and functionality
|
||||
{
|
||||
'windwp/nvim-autopairs',
|
||||
event = "InsertEnter",
|
||||
opts = {}
|
||||
},
|
||||
"tpope/vim-surround",
|
||||
"folke/which-key.nvim",
|
||||
'andymass/vim-matchup',
|
||||
'tpope/vim-repeat',
|
||||
'mbbill/undotree',
|
||||
'jdhao/whitespace.nvim',
|
||||
'lambdalisue/suda.vim',
|
||||
'xiyaowong/nvim-cursorword',
|
||||
|
||||
-- other
|
||||
'ahmedkhalf/project.nvim',
|
||||
'folke/neodev.nvim',
|
||||
'github/copilot.vim',
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
{'williamboman/mason.nvim'},
|
||||
{'williamboman/mason-lspconfig.nvim'},
|
||||
|
||||
{'VonHeikemen/lsp-zero.nvim', branch = 'v3.x'},
|
||||
{'neovim/nvim-lspconfig'},
|
||||
{'hrsh7th/cmp-nvim-lsp'},
|
||||
{'hrsh7th/nvim-cmp'},
|
||||
{'L3MON4D3/LuaSnip'},
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
return {
|
||||
{
|
||||
'nvim-telescope/telescope.nvim',
|
||||
branch = '0.1.x',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
{
|
||||
'nvim-telescope/telescope-fzf-native.nvim',
|
||||
build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build',
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
|
@ -0,0 +1,57 @@
|
|||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
version = false,
|
||||
build = ":TSUpdate",
|
||||
event = { "BufReadPost", "BufNewFile" },
|
||||
dependencies = {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
init = function()
|
||||
require("lazy.core.loader").disable_rtp_plugin("nvim-treesitter-textobjects")
|
||||
load_textobjects = true
|
||||
end,
|
||||
},
|
||||
},
|
||||
cmd = { "TSUpdateSync" },
|
||||
keys = {
|
||||
{ "<c-space>", desc = "Increment selection" },
|
||||
{ "<bs>", desc = "Decrement selection", mode = "x" },
|
||||
},
|
||||
opts = {
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
indent = { enable = true },
|
||||
auto_install = true,
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"go",
|
||||
"javascript",
|
||||
"json",
|
||||
"lua",
|
||||
"luadoc",
|
||||
"luap",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"python",
|
||||
"query",
|
||||
"regex",
|
||||
"terraform",
|
||||
"tsx",
|
||||
"typescript",
|
||||
"vim",
|
||||
"vimdoc",
|
||||
"yaml",
|
||||
},
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = "<C-space>",
|
||||
node_incremental = "<C-space>",
|
||||
scope_incremental = false,
|
||||
node_decremental = "<bs>",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
vim.g.mapleader = " "
|
||||
|
||||
-- sets
|
||||
vim.opt.clipboard = "unnamedplus"
|
||||
vim.opt.nu = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.encoding = "utf8"
|
||||
vim.opt.shell = "/bin/bash"
|
||||
vim.opt.laststatus = 2
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.textwidth = 0
|
||||
vim.opt.background = "dark"
|
||||
vim.opt.listchars = "tab:│ ,trail:~,extends:>,precedes:<"
|
||||
vim.opt.foldenable = false
|
||||
vim.opt.foldmethod = "expr"
|
||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
vim.opt.termguicolors = true
|
||||
vim.opt.autochdir = true
|
||||
vim.opt.showcmd = true
|
||||
vim.opt.wrap = true
|
||||
vim.opt.linebreak = true
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.cursorline = true
|
||||
vim.opt.cursorcolumn = true
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.autoindent = true
|
||||
vim.opt.list = true
|
||||
vim.opt.splitright = true
|
||||
vim.opt.splitbelow = true
|
||||
vim.opt.undofile = true
|
||||
vim.opt.undodir = "/home/pavle/.local/share/nvim/undodir"
|
||||
vim.opt.scrolloff = 8
|
||||
vim.opt.ignorecase = true
|
||||
vim.opt.smartcase = true
|
Loading…
Reference in New Issue